blood rune check work

This commit is contained in:
2024-05-04 10:11:08 -05:00
parent 5cd94234e9
commit 3189d64031
+11 -21
View File
@@ -276,34 +276,24 @@ public class ApplyRuneMsg extends ClientNetMsg {
return false; return false;
} }
boolean isBloodRune = false;
switch (rb.getName()) { switch (rb.getName()) {
case "Born of the Ethyri": case "Born of the Ethyri":
case "Born of the Taripontor": case "Born of the Taripontor":
case "Born of the Gwendannen": case "Born of the Gwendannen":
case "Born of the Invorri": case "Born of the Invorri":
case "Born of the Irydnu": case "Born of the Irydnu":
isBloodRune = true; for (CharacterRune charRune : playerCharacter.getRunes()) {
break; RuneBase rb2 = charRune.getRuneBase();
} switch (rb2.getName()) {
boolean hasBloodRune = false; case "Born of the Ethyri":
if(isBloodRune) { case "Born of the Taripontor":
for (CharacterRune charRune : playerCharacter.getRunes()) { case "Born of the Gwendannen":
RuneBase rb2 = charRune.getRuneBase(); case "Born of the Invorri":
switch (rb2.getName()) { case "Born of the Irydnu":
case "Born of the Ethyri": ChatManager.chatSystemError(playerCharacter, "You Have Already Applied A Blood Rune");
case "Born of the Taripontor": return false;
case "Born of the Gwendannen": }
case "Born of the Invorri":
case "Born of the Irydnu":
hasBloodRune = true;
break;
} }
}
}
if(hasBloodRune){
ChatManager.chatSystemError(playerCharacter, "You Have Already Applied A Blood Rune");
return false;
} }
//if discipline, check number applied //if discipline, check number applied
if (isDiscipline(runeID)) { if (isDiscipline(runeID)) {