From 2419cef04ea292e014343fd545a2419dcc907513 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 30 May 2022 15:44:58 -0400 Subject: [PATCH] Core/AI: Change m_originalCaster to m_caster when calling OnSpellStart Port From (https://github.com/TrinityCore/TrinityCore/commit/1bb63f69ef12d572a34f6ed107a5d6008c7da5e2) --- Source/Game/Spells/Spell.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index ee031ce94..8c825dc70 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -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());