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))