|
|
@ -902,11 +902,18 @@ public class PlayerCharacter extends AbstractCharacter { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Validate Rune against Race
|
|
|
|
boolean bypassCheck = false; |
|
|
|
if(raceID == 1999 && runeBase.getName().equals("Tough Hide") == true){ |
|
|
|
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"); |
|
|
|
Logger.info("Trait Not valid for Race"); |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|