|
|
@ -83,6 +83,7 @@ public class ApplyRuneMsg extends ClientNetMsg { |
|
|
|
//Check race is met
|
|
|
|
//Check race is met
|
|
|
|
if (rb.getRace() != null && rb.getRace().size() > 0) { |
|
|
|
if (rb.getRace() != null && rb.getRace().size() > 0) { |
|
|
|
int raceID = playerCharacter.getRaceID(); |
|
|
|
int raceID = playerCharacter.getRaceID(); |
|
|
|
|
|
|
|
valid = !rb.getRace().containsKey(raceID); |
|
|
|
if (rb.getRace().containsKey(raceID)) |
|
|
|
if (rb.getRace().containsKey(raceID)) |
|
|
|
valid = rb.getRace().get(raceID); |
|
|
|
valid = rb.getRace().get(raceID); |
|
|
|
} else{ |
|
|
|
} else{ |
|
|
@ -95,6 +96,7 @@ public class ApplyRuneMsg extends ClientNetMsg { |
|
|
|
//Check base class is met
|
|
|
|
//Check base class is met
|
|
|
|
if (rb.getBaseClass() != null && rb.getBaseClass().size() > 0) { |
|
|
|
if (rb.getBaseClass() != null && rb.getBaseClass().size() > 0) { |
|
|
|
int baseID = playerCharacter.getBaseClassID(); |
|
|
|
int baseID = playerCharacter.getBaseClassID(); |
|
|
|
|
|
|
|
valid = !rb.getBaseClass().containsKey(baseID); |
|
|
|
if (rb.getBaseClass().containsKey(baseID)) |
|
|
|
if (rb.getBaseClass().containsKey(baseID)) |
|
|
|
valid = rb.getRace().get(baseID); |
|
|
|
valid = rb.getRace().get(baseID); |
|
|
|
} else{ |
|
|
|
} else{ |
|
|
@ -107,6 +109,7 @@ public class ApplyRuneMsg extends ClientNetMsg { |
|
|
|
//Check promotion class is met
|
|
|
|
//Check promotion class is met
|
|
|
|
if (rb.getPromotionClass() != null && rb.getPromotionClass().size() > 0) { |
|
|
|
if (rb.getPromotionClass() != null && rb.getPromotionClass().size() > 0) { |
|
|
|
int promotionClassID = playerCharacter.getPromotionClassID(); |
|
|
|
int promotionClassID = playerCharacter.getPromotionClassID(); |
|
|
|
|
|
|
|
valid = !rb.getPromotionClass().containsKey(promotionClassID); |
|
|
|
if (rb.getPromotionClass().containsKey(promotionClassID)) |
|
|
|
if (rb.getPromotionClass().containsKey(promotionClassID)) |
|
|
|
valid = rb.getRace().get(promotionClassID); |
|
|
|
valid = rb.getRace().get(promotionClassID); |
|
|
|
} else{ |
|
|
|
} else{ |
|
|
|