Fix irand(min,max) usage (min shall always be lower than max)

--HG--
branch : trunk
This commit is contained in:
Trazom62
2010-01-22 18:38:33 +01:00
parent b57fec2961
commit 7b3691ac9e
8 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ struct TRINITY_DLL_DECL boss_kruulAI : public ScriptedAI
void SummonHounds(Unit* pVictim)
{
if (Creature *Hound = DoSpawnCreature(19207, RAND(irand(0,-9),irand(0,9)), RAND(irand(0,-9),irand(0,9)), 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000))
if (Creature *Hound = DoSpawnCreature(19207, irand(-9,9), irand(-9,9), 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000))
Hound->AI()->AttackStart(pVictim);
}