Browse Source

implement server side restrictions

combat-2
FatBoy-DOTC 9 months ago
parent
commit
f952785c8e
  1. 10
      src/engine/objects/PlayerCharacter.java

10
src/engine/objects/PlayerCharacter.java

@ -4576,9 +4576,13 @@ public class PlayerCharacter extends AbstractCharacter {
this.absGender = SexType.FEMALE; this.absGender = SexType.FEMALE;
for(CharacterRune rune : this.runes){ for(CharacterRune rune : this.runes){
DisciplineType disc = DisciplineType.valueOf(RuneBase.getRuneBase(rune.getRuneBaseID()).getName().replace("-", "").replace(" ", "")); try {
if(disc != null){ DisciplineType disc = DisciplineType.valueOf(RuneBase.getRuneBase(rune.getRuneBaseID()).getName().replace("-", "").replace(" ", ""));
this.absDisciplines.add(disc); if (disc != null) {
this.absDisciplines.add(disc);
}
} catch(Exception e){
} }
} }
} }

Loading…
Cancel
Save