Scripts/Icecrown Citadel: Fixed crash in Blood-Queen Lana'thel script

Closes issue #5017.

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-12-04 12:53:01 +01:00
parent bbf619c20d
commit 04b4364908
@@ -268,9 +268,12 @@ class boss_blood_queen_lana_thel : public CreatureScript
if (offtank != newOfftank) if (offtank != newOfftank)
{ {
offtank = newOfftank; offtank = newOfftank;
offtank->CastSpell(me->getVictim(), SPELL_BLOOD_MIRROR_DAMAGE, true); if (offtank)
me->getVictim()->CastSpell(offtank, SPELL_BLOOD_MIRROR_DUMMY, true); {
DoCastVictim(SPELL_BLOOD_MIRROR_VISUAL); offtank->CastSpell(me->getVictim(), SPELL_BLOOD_MIRROR_DAMAGE, true);
me->getVictim()->CastSpell(offtank, SPELL_BLOOD_MIRROR_DUMMY, true);
DoCastVictim(SPELL_BLOOD_MIRROR_VISUAL);
}
} }
events.ScheduleEvent(EVENT_BLOOD_MIRROR, 2500, EVENT_GROUP_CANCELLABLE); events.ScheduleEvent(EVENT_BLOOD_MIRROR, 2500, EVENT_GROUP_CANCELLABLE);
break; break;