Core/AI: Change m_originalCaster to m_caster when calling OnSpellStart
Port From (https://github.com/TrinityCore/TrinityCore/commit/1bb63f69ef12d572a34f6ed107a5d6008c7da5e2)
This commit is contained in:
@@ -2503,7 +2503,7 @@ namespace Game.Spells
|
|||||||
TriggerGlobalCooldown();
|
TriggerGlobalCooldown();
|
||||||
|
|
||||||
// Call CreatureAI hook OnSpellStart
|
// Call CreatureAI hook OnSpellStart
|
||||||
Creature caster = m_originalCaster.ToCreature();
|
Creature caster = m_caster.ToCreature();
|
||||||
if (caster != null)
|
if (caster != null)
|
||||||
if (caster.IsAIEnabled())
|
if (caster.IsAIEnabled())
|
||||||
caster.GetAI().OnSpellStart(GetSpellInfo());
|
caster.GetAI().OnSpellStart(GetSpellInfo());
|
||||||
|
|||||||
Reference in New Issue
Block a user