Browse Source

server side race/cass restrictions

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

3
src/engine/objects/PlayerCharacter.java

@ -4561,7 +4561,8 @@ public class PlayerCharacter extends AbstractCharacter {
this.setBounds(playerBounds); this.setBounds(playerBounds);
//assign enum values for restrictions //assign enum values for restrictions
this.absRace = Enum.MonsterType.valueOf(this.getRace().getName().replace("-","")); String race = this.getRace().getName().replace("-","");
this.absRace = Enum.MonsterType.valueOf(race);
if(this.promotionClass != null) if(this.promotionClass != null)
this.absClass = Enum.PromoteType.valueOf(this.getPromotionClass().getName()); this.absClass = Enum.PromoteType.valueOf(this.getPromotionClass().getName());

Loading…
Cancel
Save