Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE
Port From (https://github.com/TrinityCore/TrinityCore/commit/88ff97c1f96381565c47f8ca1993bdc7fce19fd6)
This commit is contained in:
@@ -2557,7 +2557,7 @@ namespace Game.Entities
|
||||
if ((bySpell == null || !bySpell.HasAttribute(SpellAttr6.CanTargetUntargetable)) && unitTarget != null && unitTarget.HasUnitFlag(UnitFlags.NonAttackable2))
|
||||
return false;
|
||||
|
||||
if (unitTarget != null && unitTarget.HasUnitFlag(UnitFlags.Uninteractible))
|
||||
if (unitTarget != null && unitTarget.IsUninteractible())
|
||||
return false;
|
||||
|
||||
Player playerAttacker = ToPlayer();
|
||||
@@ -2714,7 +2714,7 @@ namespace Game.Entities
|
||||
if ((bySpell == null || !bySpell.HasAttribute(SpellAttr6.CanTargetUntargetable)) && unitTarget != null && unitTarget.HasUnitFlag(UnitFlags.NonAttackable2))
|
||||
return false;
|
||||
|
||||
if (unitTarget != null && unitTarget.HasUnitFlag(UnitFlags.Uninteractible))
|
||||
if (unitTarget != null && unitTarget.IsUninteractible())
|
||||
return false;
|
||||
|
||||
// check flags for negative spells
|
||||
|
||||
Reference in New Issue
Block a user