Core/Scripts: Allow accessing removed spell HitAura in scripts

Port From (https://github.com/TrinityCore/TrinityCore/commit/cc0e892d8db6bbb385039efe01f29f83c94a0ef6)
This commit is contained in:
Hondacrx
2025-08-17 23:11:25 -04:00
parent 7b57778f14
commit ffcc5422e9
+2 -2
View File
@@ -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;