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
@@ -199,7 +199,7 @@ class example_creature : public CreatureScript
|
||||
if (m_uiSpell1Timer <= uiDiff)
|
||||
{
|
||||
//Cast spell one on our current target.
|
||||
if (rand()%50 > 10)
|
||||
if (rand32() % 50 > 10)
|
||||
DoCastVictim(SPELL_ONE_ALT);
|
||||
else if (me->IsWithinDist(me->GetVictim(), 25.0f))
|
||||
DoCastVictim(SPELL_ONE);
|
||||
|
||||
Reference in new issue
Block a user