diff options
| author | offl <11556157+offl@users.noreply.github.com> | 2022-02-18 19:14:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-18 19:14:44 +0200 |
| commit | 3dca705acc953d20e4a43d4c2b3c97a84e5ab346 (patch) | |
| tree | 40e929c09e081a195ecc3ab2eba8df09cd38cd2c /src/server/scripts/Northrend | |
| parent | 410c3ff25f1484858263255bd3433f52280fa8ec (diff) | |
Core/AI: OnSpellCast, OnSpellFailed, OnSpellStart hooks (#27704)
Diffstat (limited to 'src/server/scripts/Northrend')
| -rw-r--r-- | src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp | 4 | ||||
| -rw-r--r-- | src/server/scripts/Northrend/Ulduar/HallsOfStone/boss_maiden_of_grief.cpp | 5 |
2 files changed, 4 insertions, 5 deletions
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 a3f9c8aab19..4a5efbe4252 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp @@ -1345,9 +1345,9 @@ struct npc_shambling_horror_icc : public ScriptedAI DoMeleeAttackIfReady(); } - void OnSpellCastFinished(SpellInfo const* spell, SpellFinishReason reason) override + void OnSpellFailed(SpellInfo const* spell) override { - if (reason == SPELL_FINISHED_CANCELED && spell->Id == ENRAGE) + if (spell->Id == ENRAGE) _events.RescheduleEvent(EVENT_ENRAGE, 1s); } diff --git a/src/server/scripts/Northrend/Ulduar/HallsOfStone/boss_maiden_of_grief.cpp b/src/server/scripts/Northrend/Ulduar/HallsOfStone/boss_maiden_of_grief.cpp index 88c7280eb23..5a88706560e 100644 --- a/src/server/scripts/Northrend/Ulduar/HallsOfStone/boss_maiden_of_grief.cpp +++ b/src/server/scripts/Northrend/Ulduar/HallsOfStone/boss_maiden_of_grief.cpp @@ -19,7 +19,6 @@ #include "halls_of_stone.h" #include "InstanceScript.h" #include "ScriptedCreature.h" -#include "Spell.h" #include "SpellInfo.h" #include "SpellMgr.h" @@ -82,9 +81,9 @@ struct boss_maiden_of_grief : public BossAI Talk(SAY_SLAY); } - void OnSpellCastFinished(SpellInfo const* spell, SpellFinishReason reason) override + void OnSpellCast(SpellInfo const* spell) override { - if (reason == SPELL_FINISHED_SUCCESSFUL_CAST && spell->Id == sSpellMgr->GetSpellIdForDifficulty(SPELL_SHOCK_OF_SORROW, me)) + if (spell->Id == sSpellMgr->GetSpellIdForDifficulty(SPELL_SHOCK_OF_SORROW, me)) Talk(SAY_STUN); } |
