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:
hondacrx
2022-01-07 17:04:31 -05:00
parent 1a09bfc275
commit 73b456b5a0
+1
View File
@@ -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;