Core/Scripts: Allow Get**TargetCountForEffect functions to be used in EffectLaunch script hooks
Port From (https://github.com/TrinityCore/TrinityCore/commit/e00b1df36ec021bb80659ab9828e0c1a9b55adcf)
This commit is contained in:
@@ -435,6 +435,7 @@ namespace Game.Scripting
|
||||
bool IsAfterTargetSelectionPhase()
|
||||
{
|
||||
return IsInHitPhase()
|
||||
|| IsInEffectHook()
|
||||
|| m_currentScriptState == (byte)SpellScriptHookType.OnCast
|
||||
|| m_currentScriptState == (byte)SpellScriptHookType.AfterCast
|
||||
|| m_currentScriptState == (byte)SpellScriptHookType.CalcCritChance;
|
||||
|
||||
Reference in New Issue
Block a user