From dfa646d8280786acfbe047e95c526bda408bfc0e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 25 Aug 2024 17:31:28 -0400 Subject: [PATCH] Update to player city filter --- src/engine/objects/City.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/engine/objects/City.java b/src/engine/objects/City.java index 52f09882..a9fae4b6 100644 --- a/src/engine/objects/City.java +++ b/src/engine/objects/City.java @@ -308,6 +308,21 @@ public class City extends AbstractWorldObject { if (city.parentZone == null) continue; + // Can't teleport to something without a tree + + if (city.getTOL() == null) + continue; + + // No abandoned cities + + if (city.getTOL().getGuild().isEmptyGuild()) + continue; + + // No destroyed cities + + if (city.getTOL().getRank() == -1) + continue; + //can't repledge to a guild you're already part of if (repledge && city.getGuild().equals(playerCharacter.guild))