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:
hondacrx
2022-05-30 15:44:58 -04:00
parent 306b0cb227
commit 2419cef04e
+1 -1
View File
@@ -2503,7 +2503,7 @@ namespace Game.Spells
TriggerGlobalCooldown();
// Call CreatureAI hook OnSpellStart
Creature caster = m_originalCaster.ToCreature();
Creature caster = m_caster.ToCreature();
if (caster != null)
if (caster.IsAIEnabled())
caster.GetAI().OnSpellStart(GetSpellInfo());