diff --git a/src/engine/objects/City.java b/src/engine/objects/City.java index 111ec290..b48804d8 100644 --- a/src/engine/objects/City.java +++ b/src/engine/objects/City.java @@ -357,7 +357,7 @@ public class City extends AbstractWorldObject { } else if (pc.getLevel() >= g.getTeleportMin() && pc.getLevel() <= g.getTeleportMax()) if (ConfigManager.MB_RULESET.getValue().equals("LORE")) { - if (city.getGuild().getGuildType().equals(pc.guild.getGuildType())) { + if (city.getGuild().getGuildType().canJoin(pc)) { cities.add(city); } } else { @@ -422,7 +422,7 @@ public class City extends AbstractWorldObject { } } else if (playerCharacter.getLevel() > 9) if (ConfigManager.MB_RULESET.getValue().equals("LORE")) { - if (city.getGuild().getGuildType().equals(playerCharacter.guild.getGuildType())) { + if (city.getGuild().getGuildType().canJoin(playerCharacter)) { cities.add(city); } } else { @@ -431,7 +431,7 @@ public class City extends AbstractWorldObject { } else if (playerCharacter.getLevel() >= guild.getRepledgeMin() && playerCharacter.getLevel() <= guild.getRepledgeMax()) { if (ConfigManager.MB_RULESET.getValue().equals("LORE")) { - if (city.getGuild().getGuildType().equals(playerCharacter.guild.getGuildType())) { + if (city.getGuild().getGuildType().canJoin(playerCharacter)) { cities.add(city); } } else {