Browse Source

allow BH and huntsman on all but priest

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
a6cee850a6
  1. 7
      src/engine/net/client/msg/ApplyRuneMsg.java

7
src/engine/net/client/msg/ApplyRuneMsg.java

@ -80,6 +80,7 @@ public class ApplyRuneMsg extends ClientNetMsg { @@ -80,6 +80,7 @@ public class ApplyRuneMsg extends ClientNetMsg {
//Check race is met
ConcurrentHashMap<Integer, Boolean> races = rb.getRace();
if(runeID != 3007 && runeID != 3014) {//bounty hunter and huntsman
if (races.size() > 0) {
int raceID = playerCharacter.getRaceID();
boolean valid = false;
@ -125,7 +126,11 @@ public class ApplyRuneMsg extends ClientNetMsg { @@ -125,7 +126,11 @@ public class ApplyRuneMsg extends ClientNetMsg {
return false;
}
}
} else{
if(playerCharacter.getPromotionClassID() == 2519){//priest
return false;
}
}
//Check disciplines are met
ArrayList<CharacterRune> runes = playerCharacter.getRunes();
ConcurrentHashMap<Integer, Boolean> disciplines = rb.getDiscipline();

Loading…
Cancel
Save