blood rune check work

This commit is contained in:
2024-05-04 09:53:01 -05:00
parent b45b325cad
commit 5cd94234e9
+14 -1
View File
@@ -275,8 +275,20 @@ 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) {
for (CharacterRune charRune : playerCharacter.getRunes()) {
RuneBase rb2 = charRune.getRuneBase(); RuneBase rb2 = charRune.getRuneBase();
switch (rb2.getName()) { switch (rb2.getName()) {
case "Born of the Ethyri": case "Born of the Ethyri":
@@ -288,6 +300,7 @@ public class ApplyRuneMsg extends ClientNetMsg {
break; break;
} }
} }
}
if(hasBloodRune){ if(hasBloodRune){
ChatManager.chatSystemError(playerCharacter, "You Have Already Applied A Blood Rune"); ChatManager.chatSystemError(playerCharacter, "You Have Already Applied A Blood Rune");
return false; return false;