Browse Source

.contains check needed.

feature-workorder
MagicBot 1 year ago
parent
commit
ef3e3a0392
  1. 3
      src/engine/gameManager/CombatManager.java

3
src/engine/gameManager/CombatManager.java

@ -1325,7 +1325,8 @@ public enum CombatManager { @@ -1325,7 +1325,8 @@ public enum CombatManager {
// Add to city outlaw list
if (attacker.getObjectType().equals(GameObjectType.PlayerCharacter))
if (attacker.getObjectType().equals(GameObjectType.PlayerCharacter) &&
attackedMobile.guardedCity.cityOutlaws.contains(attacker.getObjectUUID()) == false)
attackedMobile.guardedCity.cityOutlaws.add(attacker.getObjectUUID());
}

Loading…
Cancel
Save