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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user