From 6f4a9f7d1abceef522f01fdea435a6a5bf70ac79 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 28 Apr 2024 13:44:35 -0500 Subject: [PATCH] debug option added in canJoin for charter type --- src/engine/mbEnums.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/engine/mbEnums.java b/src/engine/mbEnums.java index c7426cb5..da4e5741 100644 --- a/src/engine/mbEnums.java +++ b/src/engine/mbEnums.java @@ -2585,7 +2585,14 @@ public class mbEnums { } public boolean canJoin(AbstractCharacter character) { - return this.requiredRaces.contains(character.absRace) && this.requiredClasses.contains(character.absPromotionClass) && this.sexRequired.contains(character.absGender); + if(this.requiredRaces.contains(character.absRace) == false) + return false; + if(this.requiredClasses.contains(character.absPromotionClass)) + return false; + if(this.sexRequired.contains(character.absGender)) + return false; + + return true; } }