From 7a72a170beee6cf91c8b44244964b0f1388485ec Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 1 Jul 2017 21:33:34 +0200 Subject: Nopch fix 4 --- .../Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/server/scripts/Outland') 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); -- cgit v1.2.3