aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Outland
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts/Outland')
-rw-r--r--src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp b/src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp
index 2b4cadf8dfd..976baf0c851 100644
--- a/src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp
+++ b/src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp
@@ -26,7 +26,6 @@ Category: Auchindoun, Shadow Labyrinth
#include "ScriptMgr.h"
#include "ObjectAccessor.h"
#include "ScriptedCreature.h"
-#include "Player.h"
#include "shadow_labyrinth.h"
enum BlackheartTheInciter
@@ -112,10 +111,8 @@ class boss_blackheart_the_inciter : public CreatureScript
DoCast(me, SPELL_INCITE_CHAOS);
for (ThreatReference* ref : me->GetThreatManager().GetUnsortedThreatList())
- {
- if (Player* target = ref->GetVictim()->ToPlayer())
- me->CastSpell(target, SPELL_INCITE_CHAOS_B, true);
- }
+ if (ref->GetVictim()->GetTypeId() == TYPEID_PLAYER)
+ me->CastSpell(ref->GetVictim, SPELL_INCITE_CHAOS_B, true);
ResetThreatList();
events.ScheduleEvent(EVENT_INCITE_CHAOS, 40000);