Core/Scripts: Allow Get**TargetCountForEffect functions to be used in EffectLaunch script hooks

This commit is contained in:
Shauren
2021-12-25 22:46:46 +01:00
parent 570e882d02
commit e00b1df36e

View File

@@ -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;