Browse Source

promoting was attempting to use players promotion class (which is null)

combat-2
FatBoy-DOTC 7 months ago
parent
commit
6cc94e076d
  1. 2
      src/engine/objects/PlayerCharacter.java

2
src/engine/objects/PlayerCharacter.java

@ -2193,7 +2193,7 @@ public class PlayerCharacter extends AbstractCharacter { @@ -2193,7 +2193,7 @@ public class PlayerCharacter extends AbstractCharacter {
public boolean setPromotionClass(int value) {
PromotionClass promotionClass = PromotionClass.GetPromtionClassFromCache(value);
this.absPromotionClass = mbEnums.ClassType.valueOf(this.getPromotionClass().getName());
this.absPromotionClass = mbEnums.ClassType.valueOf(promotionClass.getName());
if (promotionClass == null)
return false;

Loading…
Cancel
Save