From ffcc5422e93933bd834cb97a154728662a7fcc09 Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Sun, 17 Aug 2025 23:11:25 -0400 Subject: [PATCH] Core/Scripts: Allow accessing removed spell HitAura in scripts Port From (https://github.com/TrinityCore/TrinityCore/commit/cc0e892d8db6bbb385039efe01f29f83c94a0ef6) --- Source/Game/Scripting/SpellScript.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Game/Scripting/SpellScript.cs b/Source/Game/Scripting/SpellScript.cs index f3e93a71a..3581dfc8f 100644 --- a/Source/Game/Scripting/SpellScript.cs +++ b/Source/Game/Scripting/SpellScript.cs @@ -926,7 +926,7 @@ namespace Game.Scripting } // returns current spell hit target aura - public Aura GetHitAura(bool dynObjAura = false) + public Aura GetHitAura(bool dynObjAura = false, bool withRemoved = false) { if (!IsInTargetHook()) { @@ -938,7 +938,7 @@ namespace Game.Scripting if (dynObjAura) aura = m_spell.dynObjAura; - if (aura == null || aura.IsRemoved()) + if (aura == null || (aura.IsRemoved() && !withRemoved)) return null; return aura;