aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent_Michael <Vincent_Michael@gmx.de>2013-02-16 18:15:32 +0100
committerVincent_Michael <Vincent_Michael@gmx.de>2013-02-16 18:15:32 +0100
commit166a2092fd086953e0679d19e9b7d959c902a9ea (patch)
tree7d58edc003a9ae91c5dd4c97c6ef7c29027b3c09 /src
parentf95ce01b15ebf2dfb3fdb99c43c80cab909dbb47 (diff)
Scripts/BWL: Fix build no. 2
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/EasternKingdoms/BlackwingLair/boss_broodlord_lashlayer.cpp11
1 files changed, 7 insertions, 4 deletions
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: