Core/Creature: rename CREATURE_FLAG_EXTRA_IGNORE_COMBAT into CREATURE_FLAG_EXTRA_CANNOT_ENTER_COMBAT
Port From (https://github.com/TrinityCore/TrinityCore/commit/53d19b09f4de7c092747663ae7e1a01c0df553bf)
This commit is contained in:
@@ -57,8 +57,8 @@ namespace Game.Combat
|
||||
return false;
|
||||
if (a.HasUnitState(UnitState.InFlight) || b.HasUnitState(UnitState.InFlight))
|
||||
return false;
|
||||
// ... both units must not be ignoring combat
|
||||
if (a.IsIgnoringCombat() || b.IsIgnoringCombat())
|
||||
// ... both units must be allowed to enter combat
|
||||
if (a.IsCombatDisallowed() || b.IsCombatDisallowed())
|
||||
return false;
|
||||
if (a.IsFriendlyTo(b) || b.IsFriendlyTo(a))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user