disable teleports to cities that are destroyed or errant
This commit is contained in:
@@ -306,8 +306,22 @@ public class City extends AbstractWorldObject {
|
|||||||
if (city.parentZone == null)
|
if (city.parentZone == null)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
//can't repledge to a guild you're already part of
|
// 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))
|
if (repledge && city.getGuild().equals(playerCharacter.guild))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user