mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Scripts: Allow Get**TargetCountForEffect functions to be used in EffectLaunch script hooks
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user