Browse Source

blood rune check work

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

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

@ -276,34 +276,24 @@ public class ApplyRuneMsg extends ClientNetMsg { @@ -276,34 +276,24 @@ public class ApplyRuneMsg extends ClientNetMsg {
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;
if(isBloodRune) {
for (CharacterRune charRune : playerCharacter.getRunes()) {
RuneBase rb2 = charRune.getRuneBase();
switch (rb2.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":
hasBloodRune = true;
break;
for (CharacterRune charRune : playerCharacter.getRunes()) {
RuneBase rb2 = charRune.getRuneBase();
switch (rb2.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":
ChatManager.chatSystemError(playerCharacter, "You Have Already Applied A Blood Rune");
return false;
}
}
}
}
if(hasBloodRune){
ChatManager.chatSystemError(playerCharacter, "You Have Already Applied A Blood Rune");
return false;
}
//if discipline, check number applied
if (isDiscipline(runeID)) {

Loading…
Cancel
Save