Core/Auras: Implemented SPELL_ATTR7_DISABLE_AURA_WHILE_DEAD (suppress aura applications while dead without removing the aura)

Port From (https://github.com/TrinityCore/TrinityCore/commit/0f7dd4eadf90a5407fd232d083485430d725152f)
This commit is contained in:
hondacrx
2024-02-01 10:27:09 -05:00
parent cfc8a8bfa8
commit c00a8d32ea
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -2716,6 +2716,9 @@ namespace Game.Spells
public override void FillTargetMap(ref Dictionary<Unit, uint> targets, Unit caster)
{
if (GetSpellInfo().HasAttribute(SpellAttr7.DisableAuraWhileDead) && !GetUnitOwner().IsAlive())
return;
Unit refe = caster;
if (refe == null)
refe = GetUnitOwner();