From 166a2092fd086953e0679d19e9b7d959c902a9ea Mon Sep 17 00:00:00 2001 From: Vincent_Michael Date: Sat, 16 Feb 2013 18:15:32 +0100 Subject: Scripts/BWL: Fix build no. 2 --- .../BlackwingLair/boss_broodlord_lashlayer.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/server/scripts/EasternKingdoms/BlackwingLair/boss_broodlord_lashlayer.cpp b/src/server/scripts/EasternKingdoms/BlackwingLair/boss_broodlord_lashlayer.cpp index 79a380ccce9..1303f5c4f58 100644 --- a/src/server/scripts/EasternKingdoms/BlackwingLair/boss_broodlord_lashlayer.cpp +++ b/src/server/scripts/EasternKingdoms/BlackwingLair/boss_broodlord_lashlayer.cpp @@ -105,10 +105,13 @@ public: events.ScheduleEvent(EVENT_BLAST_WAVE, 12000); break; case EVENT_KNOCK_BACK: - DoCastVictim(SPELL_BLAST_WAVE); - // Drop 50% of threat - if (DoGetThreat(target)) - DoModifyThreatPercent(target, -50); + if (Unit* target = me->getVictim()) + { + DoCast(target, SPELL_BLAST_WAVE); + // Drop 50% of threat + if (DoGetThreat(target)) + DoModifyThreatPercent(target, -50); + } events.ScheduleEvent(EVENT_KNOCK_BACK, 30000); break; default: -- cgit v1.2.3