Browse Source

fleet of foot allowed for saetor

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
b9c38d9d2b
  1. 15
      src/engine/objects/PlayerCharacter.java

15
src/engine/objects/PlayerCharacter.java

@ -902,11 +902,18 @@ public class PlayerCharacter extends AbstractCharacter { @@ -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;
}

Loading…
Cancel
Save