Core/SmartAI: Various fixes and extensions for smart scripts:
Port From (https://github.com/TrinityCore/TrinityCore/commit/a32d5cfa1762ae1158ee2f40b4c9b36e5b41913a)
This commit is contained in:
@@ -2232,6 +2232,9 @@ namespace Game.Spells
|
||||
if (effect != null && Convert.ToBoolean(effectMask & (1 << (int)effect.EffectIndex)))
|
||||
HandleEffects(null, null, go, effect.EffectIndex, SpellEffectHandleMode.HitTarget);
|
||||
|
||||
if (go.GetAI() != null)
|
||||
go.GetAI().SpellHit(m_caster, m_spellInfo);
|
||||
|
||||
CallScriptOnHitHandlers();
|
||||
CallScriptAfterHitHandlers();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user