Browse Source

blood rune check work

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

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

@ -275,17 +275,30 @@ public class ApplyRuneMsg extends ClientNetMsg {
if (runes.size() > 12) { if (runes.size() > 12) {
return false; return false;
} }
boolean isBloodRune = false;
switch (rb.getName()) {
case "Born of the Ethyri":
case "Born of the Taripontor":
case "Born of the Gwendannen":
case "Born of the Invorri":
case "Born of the Irydnu":
isBloodRune = true;
break;
}
boolean hasBloodRune = false; boolean hasBloodRune = false;
for(CharacterRune charRune : playerCharacter.getRunes()) { if(isBloodRune) {
RuneBase rb2 = charRune.getRuneBase(); for (CharacterRune charRune : playerCharacter.getRunes()) {
switch (rb2.getName()) { RuneBase rb2 = charRune.getRuneBase();
case "Born of the Ethyri": switch (rb2.getName()) {
case "Born of the Taripontor": case "Born of the Ethyri":
case "Born of the Gwendannen": case "Born of the Taripontor":
case "Born of the Invorri": case "Born of the Gwendannen":
case "Born of the Irydnu": case "Born of the Invorri":
hasBloodRune = true; case "Born of the Irydnu":
break; hasBloodRune = true;
break;
}
} }
} }
if(hasBloodRune){ if(hasBloodRune){

Loading…
Cancel
Save