aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellScript.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2021-12-25 22:46:46 +0100
committerShauren <shauren.trinity@gmail.com>2021-12-25 22:46:46 +0100
commite00b1df36ec021bb80659ab9828e0c1a9b55adcf (patch)
treea265ce45a26a47a9ba83df4568fd203356fe4dda /src/server/game/Spells/SpellScript.cpp
parent570e882d024991b44ccfd2fb2891a25ee054587b (diff)
Core/Scripts: Allow Get**TargetCountForEffect functions to be used in EffectLaunch script hooks
Diffstat (limited to 'src/server/game/Spells/SpellScript.cpp')
-rw-r--r--src/server/game/Spells/SpellScript.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellScript.cpp b/src/server/game/Spells/SpellScript.cpp
index 6313668eed6..402b43265fe 100644
--- a/src/server/game/Spells/SpellScript.cpp
+++ b/src/server/game/Spells/SpellScript.cpp
@@ -406,6 +406,7 @@ bool SpellScript::IsInCheckCastHook() const
bool SpellScript::IsAfterTargetSelectionPhase() const
{
return IsInHitPhase()
+ || IsInEffectHook()
|| m_currentScriptState == SPELL_SCRIPT_HOOK_ON_CAST
|| m_currentScriptState == SPELL_SCRIPT_HOOK_AFTER_CAST
|| m_currentScriptState == SPELL_SCRIPT_HOOK_CALC_CRIT_CHANCE;