Scripts/AQ20: Crash fix

This commit is contained in:
LihO
2011-08-06 16:44:22 +02:00
parent 7c6366ca11
commit 19d5177d39
@@ -89,8 +89,8 @@ class boss_kurinnaxx : public CreatureScript
case EVENT_SANDTRAP: case EVENT_SANDTRAP:
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true)) if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true))
target->CastSpell(target, SPELL_SANDTRAP, true); target->CastSpell(target, SPELL_SANDTRAP, true);
else else if (Unit* victim = me->getVictim())
me->getVictim()->CastSpell(me->getVictim(), SPELL_SANDTRAP, true); victim->CastSpell(victim, SPELL_SANDTRAP, true);
events.ScheduleEvent(EVENT_SANDTRAP, urand(5000,15000)); events.ScheduleEvent(EVENT_SANDTRAP, urand(5000,15000));
break; break;
case EVENT_WIDE_SLASH: case EVENT_WIDE_SLASH: