From 04b436490848843a43cfd3e38c390cea649eaeab Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 4 Dec 2010 12:53:01 +0100 Subject: Scripts/Icecrown Citadel: Fixed crash in Blood-Queen Lana'thel script Closes issue #5017. --HG-- branch : trunk --- .../Northrend/IcecrownCitadel/boss_blood_queen_lana_thel.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_blood_queen_lana_thel.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_blood_queen_lana_thel.cpp index 4b45ad1643e..2f5451e3f22 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_blood_queen_lana_thel.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_blood_queen_lana_thel.cpp @@ -268,9 +268,12 @@ class boss_blood_queen_lana_thel : public CreatureScript if (offtank != newOfftank) { offtank = newOfftank; - offtank->CastSpell(me->getVictim(), SPELL_BLOOD_MIRROR_DAMAGE, true); - me->getVictim()->CastSpell(offtank, SPELL_BLOOD_MIRROR_DUMMY, true); - DoCastVictim(SPELL_BLOOD_MIRROR_VISUAL); + if (offtank) + { + 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); break; -- cgit v1.2.3