Browse Source

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

lakebane-master
FatBoy-DOTC 7 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 {
if (playerCharacter == null || origin == null || rb == null) { if (playerCharacter == null || origin == null || rb == null) {
return false; return false;
} }
int raceID = playerCharacter.getRaceID();
//Check race is met //Check race is met
ConcurrentHashMap<Integer, Boolean> races = rb.getRace(); ConcurrentHashMap<Integer, Boolean> races = rb.getRace();
if(runeID != 3007 && runeID != 3014) {//bounty hunter and huntsman if(runeID != 3007 && runeID != 3014) {//bounty hunter and huntsman
if (races.size() > 0) { if (races.size() > 0) {
int raceID = playerCharacter.getRaceID();
boolean valid = false; boolean valid = false;
for (int validID : races.keySet()) { for (int validID : races.keySet()) {
if (validID == raceID) { if (validID == raceID) {
@ -93,6 +93,12 @@ public class ApplyRuneMsg extends ClientNetMsg {
if(runeID == 3040) if(runeID == 3040)
valid = true; valid = true;
if(runeID == 3036 && raceID == 1999)
valid = true;
if(runeID == 3033 && raceID == 1999)
valid = true;
if (!valid) { if (!valid) {
return false; return false;
} }
@ -113,6 +119,12 @@ public class ApplyRuneMsg extends ClientNetMsg {
if(runeID == 3040) if(runeID == 3040)
valid = true; valid = true;
if(runeID == 3036 && raceID == 1999)
valid = true;
if(runeID == 3033 && raceID == 1999)
valid = true;
if (!valid) { if (!valid) {
return false; return false;
} }
@ -136,6 +148,12 @@ public class ApplyRuneMsg extends ClientNetMsg {
if(runeID == 3004 && (playerCharacter.getPromotionClassID() == 2505 || playerCharacter.getPromotionClassID() == 2510)) if(runeID == 3004 && (playerCharacter.getPromotionClassID() == 2505 || playerCharacter.getPromotionClassID() == 2510))
valid = true; valid = true;
if(runeID == 3036 && raceID == 1999)
valid = true;
if(runeID == 3033 && raceID == 1999)
valid = true;
if (!valid) { if (!valid) {
return false; return false;
} }

Loading…
Cancel
Save