Core/Misc: Replace rand() calls with SFMT
This commit is contained in:
1 parent
0b236d480a
commit
3388587b7a
117 files changed
+415
-438
No files matched your search
@@ -426,7 +426,7 @@ class spell_q11587_arcane_prisoner_rescue : public SpellScriptLoader
|
||||
if (Unit* unitTarget = GetHitUnit())
|
||||
{
|
||||
uint32 spellId = SPELL_SUMMON_ARCANE_PRISONER_MALE;
|
||||
if (rand() % 2)
|
||||
if (rand32() % 2)
|
||||
spellId = SPELL_SUMMON_ARCANE_PRISONER_FEMALE;
|
||||
caster->CastSpell(caster, spellId, true);
|
||||
unitTarget->CastSpell(caster, SPELL_ARCANE_PRISONER_KILL_CREDIT, true);
|
||||
|
||||
Reference in new issue
Block a user