From db6a4e471db1eddfc0ec032da1feb9a64b0b9306 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 19 Jun 2024 17:08:56 -0400 Subject: [PATCH] Lore rules added to method --- src/engine/objects/City.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/City.java b/src/engine/objects/City.java index 93eb2c06..9e003508 100644 --- a/src/engine/objects/City.java +++ b/src/engine/objects/City.java @@ -305,9 +305,12 @@ public class City extends AbstractWorldObject { if (ConfigManager.MB_RULESET.getValue().equals("LORE")) { - if (repledge == false) + if (!repledge) if (!city.getGuild().charter.equals(playerCharacter.guild.charter)) continue; + + if (!city.getGuild().charter.canJoin(playerCharacter)) + continue; } // Filter Player cities