aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Outland/TempestKeep
diff options
context:
space:
mode:
authoroffl <11556157+offl@users.noreply.github.com>2022-02-18 19:14:44 +0200
committerGitHub <noreply@github.com>2022-02-18 19:14:44 +0200
commit3dca705acc953d20e4a43d4c2b3c97a84e5ab346 (patch)
tree40e929c09e081a195ecc3ab2eba8df09cd38cd2c /src/server/scripts/Outland/TempestKeep
parent410c3ff25f1484858263255bd3433f52280fa8ec (diff)
Core/AI: OnSpellCast, OnSpellFailed, OnSpellStart hooks (#27704)
Diffstat (limited to 'src/server/scripts/Outland/TempestKeep')
-rw-r--r--src/server/scripts/Outland/TempestKeep/botanica/boss_commander_sarannis.cpp5
-rw-r--r--src/server/scripts/Outland/TempestKeep/botanica/boss_warp_splinter.cpp5
2 files changed, 4 insertions, 6 deletions
diff --git a/src/server/scripts/Outland/TempestKeep/botanica/boss_commander_sarannis.cpp b/src/server/scripts/Outland/TempestKeep/botanica/boss_commander_sarannis.cpp
index ffccab6b686..a637298c64e 100644
--- a/src/server/scripts/Outland/TempestKeep/botanica/boss_commander_sarannis.cpp
+++ b/src/server/scripts/Outland/TempestKeep/botanica/boss_commander_sarannis.cpp
@@ -17,7 +17,6 @@
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
-#include "Spell.h"
#include "SpellInfo.h"
#include "SpellScript.h"
#include "the_botanica.h"
@@ -97,9 +96,9 @@ struct boss_commander_sarannis : public BossAI
}
}
- void OnSpellCastFinished(SpellInfo const* spell, SpellFinishReason reason) override
+ void OnSpellCast(SpellInfo const* spell) override
{
- if (reason == SPELL_FINISHED_SUCCESSFUL_CAST && spell->Id == SPELL_SUMMON_REINFORCEMENTS)
+ if (spell->Id == SPELL_SUMMON_REINFORCEMENTS)
Talk(SAY_SUMMON);
}
diff --git a/src/server/scripts/Outland/TempestKeep/botanica/boss_warp_splinter.cpp b/src/server/scripts/Outland/TempestKeep/botanica/boss_warp_splinter.cpp
index c8c5dd4d2e8..e4672be695a 100644
--- a/src/server/scripts/Outland/TempestKeep/botanica/boss_warp_splinter.cpp
+++ b/src/server/scripts/Outland/TempestKeep/botanica/boss_warp_splinter.cpp
@@ -17,7 +17,6 @@
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
-#include "Spell.h"
#include "SpellInfo.h"
#include "the_botanica.h"
@@ -82,9 +81,9 @@ struct boss_warp_splinter : public BossAI
Talk(SAY_DEATH);
}
- void OnSpellCastFinished(SpellInfo const* spell, SpellFinishReason reason) override
+ void OnSpellCast(SpellInfo const* spell) override
{
- if (reason == SPELL_FINISHED_SUCCESSFUL_CAST && spell->Id == SPELL_SUMMON_SAPLINGS)
+ if (spell->Id == SPELL_SUMMON_SAPLINGS)
{
for (uint32 summonSpells : SummonSaplingsSpells)
DoCastSelf(summonSpells, true);