aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp6
-rw-r--r--src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp7
2 files changed, 7 insertions, 6 deletions
diff --git a/src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp b/src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp
index b8c45975ff8..aa6f2630ddf 100644
--- a/src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp
+++ b/src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp
@@ -24,6 +24,7 @@
#include "ObjectAccessor.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
+#include "Spell.h"
#include "SpellAuras.h"
#include "SpellScript.h"
#include "SpellAuraEffects.h"
@@ -246,8 +247,11 @@ struct boss_garothi_worldbreaker : public BossAI
instance->SendEncounterUnit(ENCOUNTER_FRAME_DISENGAGE, me);
}
- void OnSuccessfulSpellCast(SpellInfo const* spell) override
+ void OnSpellCastFinished(SpellInfo const* spell, SpellFinishReason reason) override
{
+ if (reason != SPELL_FINISHED_SUCCESSFUL_CAST)
+ return;
+
switch (spell->Id)
{
case SPELL_APOCALYPSE_DRIVE_FINAL_DAMAGE:
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp
index 3d676b29f7c..0a86b71d03c 100644
--- a/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp
+++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp
@@ -1321,12 +1321,9 @@ struct npc_shambling_horror_icc : public ScriptedAI
DoMeleeAttackIfReady();
}
- void OnSpellCastInterrupt(SpellInfo const* spell) override
+ void OnSpellCastFinished(SpellInfo const* spell, SpellFinishReason reason) override
{
- ScriptedAI::OnSpellCastInterrupt(spell);
-
- // When enrage is interrupted, reschedule the event
- if (spell->Id == ENRAGE)
+ if (reason == SPELL_FINISHED_CANCELED && spell->Id == ENRAGE)
_events.RescheduleEvent(EVENT_ENRAGE, 1s);
}