From 3189d64031bf8ee293adcd629416a64a7f2ccdc6 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 4 May 2024 10:11:08 -0500 Subject: [PATCH] blood rune check work --- src/engine/net/client/msg/ApplyRuneMsg.java | 32 +++++++-------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/src/engine/net/client/msg/ApplyRuneMsg.java b/src/engine/net/client/msg/ApplyRuneMsg.java index c64246d8..421f35f1 100644 --- a/src/engine/net/client/msg/ApplyRuneMsg.java +++ b/src/engine/net/client/msg/ApplyRuneMsg.java @@ -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)) {