|
|
|
@ -308,6 +308,21 @@ public class City extends AbstractWorldObject {
@@ -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)) |
|
|
|
|