Browse Source

blood horn and thrall can be taken on all minotaurs and saetors

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

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

@ -77,12 +77,12 @@ public class ApplyRuneMsg extends ClientNetMsg { @@ -77,12 +77,12 @@ public class ApplyRuneMsg extends ClientNetMsg {
if (playerCharacter == null || origin == null || rb == null) {
return false;
}
int raceID = playerCharacter.getRaceID();
//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;
for (int validID : races.keySet()) {
if (validID == raceID) {
@ -93,6 +93,12 @@ public class ApplyRuneMsg extends ClientNetMsg { @@ -93,6 +93,12 @@ public class ApplyRuneMsg extends ClientNetMsg {
if(runeID == 3040)
valid = true;
if(runeID == 3036 && raceID == 1999)
valid = true;
if(runeID == 3033 && raceID == 1999)
valid = true;
if (!valid) {
return false;
}
@ -113,6 +119,12 @@ public class ApplyRuneMsg extends ClientNetMsg { @@ -113,6 +119,12 @@ public class ApplyRuneMsg extends ClientNetMsg {
if(runeID == 3040)
valid = true;
if(runeID == 3036 && raceID == 1999)
valid = true;
if(runeID == 3033 && raceID == 1999)
valid = true;
if (!valid) {
return false;
}
@ -136,6 +148,12 @@ public class ApplyRuneMsg extends ClientNetMsg { @@ -136,6 +148,12 @@ public class ApplyRuneMsg extends ClientNetMsg {
if(runeID == 3004 && (playerCharacter.getPromotionClassID() == 2505 || playerCharacter.getPromotionClassID() == 2510))
valid = true;
if(runeID == 3036 && raceID == 1999)
valid = true;
if(runeID == 3033 && raceID == 1999)
valid = true;
if (!valid) {
return false;
}

Loading…
Cancel
Save