Scripts/Spells: Implement OnPrecast scripting hook for spell scripts

Port From (https://github.com/TrinityCore/TrinityCore/commit/12d00e2e5f7e2cc7efe1ea8d126f9408055c05f8)
This commit is contained in:
hondacrx
2022-02-27 14:33:22 -05:00
parent 6df3ca3a3b
commit 08aae42fe0
3 changed files with 16 additions and 1 deletions
+2
View File
@@ -502,6 +502,8 @@ namespace Game.Scripting
|| m_currentScriptState == (byte)SpellScriptHookType.EffectSuccessfulDispel;
}
public virtual void OnPrecast() { }
Spell m_spell;
uint m_hitPreventEffectMask;
uint m_hitPreventDefaultEffectMask;