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:
hondacrx
2022-05-29 16:18:29 -04:00
parent bf6fec2eb2
commit 4de86618f3
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -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;