From 050f55b62fded4cc73b76e42d56d98ea950cc26a Mon Sep 17 00:00:00 2001 From: offl <11556157+offl@users.noreply.github.com> Date: Fri, 18 Feb 2022 19:14:44 +0200 Subject: Core/AI: OnSpellCast, OnSpellFailed, OnSpellStart hooks (#27704) (cherry picked from commit 3dca705acc953d20e4a43d4c2b3c97a84e5ab346) --- .../Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/server/scripts/Argus') diff --git a/src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp b/src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp index be8b07d182b..7169440b308 100644 --- a/src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp +++ b/src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp @@ -24,7 +24,6 @@ #include "ObjectAccessor.h" #include "ScriptMgr.h" #include "ScriptedCreature.h" -#include "Spell.h" #include "SpellAuras.h" #include "SpellScript.h" #include "SpellAuraEffects.h" @@ -247,11 +246,8 @@ struct boss_garothi_worldbreaker : public BossAI instance->SendEncounterUnit(ENCOUNTER_FRAME_DISENGAGE, me); } - void OnSpellCastFinished(SpellInfo const* spell, SpellFinishReason reason) override + void OnSpellCast(SpellInfo const* spell) override { - if (reason != SPELL_FINISHED_SUCCESSFUL_CAST) - return; - switch (spell->Id) { case SPELL_APOCALYPSE_DRIVE_FINAL_DAMAGE: -- cgit v1.2.3