From b9c38d9d2bd9f245e007b35e47694f9ee9520758 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 19 Apr 2024 16:49:59 -0500 Subject: [PATCH] fleet of foot allowed for saetor --- src/engine/objects/PlayerCharacter.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 4d3d8b2f..e4d5414c 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -902,11 +902,18 @@ public class PlayerCharacter extends AbstractCharacter { return null; } - // Validate Rune against Race - if(raceID == 1999 && runeBase.getName().equals("Tough Hide") == true){ - + boolean bypassCheck = false; + if(raceID == 1999){ + switch(runeBase.getName()){ + case "Tough Hide": + case "Fleet of Foot": + bypassCheck = true; + break; + } } - else if (!race.isAllowedRune(runeBase)) { + + // Validate Rune against Race + if (!bypassCheck && !race.isAllowedRune(runeBase)) { Logger.info("Trait Not valid for Race"); return null; }