From 52a48e56189e83b372934d645a5e5eda8174e221 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 26 Jun 2024 20:51:04 -0500 Subject: [PATCH] rune application checks --- src/engine/net/client/msg/ApplyRuneMsg.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/net/client/msg/ApplyRuneMsg.java b/src/engine/net/client/msg/ApplyRuneMsg.java index 719b139e..6f7da9bd 100644 --- a/src/engine/net/client/msg/ApplyRuneMsg.java +++ b/src/engine/net/client/msg/ApplyRuneMsg.java @@ -83,6 +83,7 @@ public class ApplyRuneMsg extends ClientNetMsg { //Check race is met if (rb.getRace() != null && rb.getRace().size() > 0) { int raceID = playerCharacter.getRaceID(); + valid = !rb.getRace().containsKey(raceID); if (rb.getRace().containsKey(raceID)) valid = rb.getRace().get(raceID); } else{ @@ -95,6 +96,7 @@ public class ApplyRuneMsg extends ClientNetMsg { //Check base class is met if (rb.getBaseClass() != null && rb.getBaseClass().size() > 0) { int baseID = playerCharacter.getBaseClassID(); + valid = !rb.getBaseClass().containsKey(baseID); if (rb.getBaseClass().containsKey(baseID)) valid = rb.getRace().get(baseID); } else{ @@ -107,6 +109,7 @@ public class ApplyRuneMsg extends ClientNetMsg { //Check promotion class is met if (rb.getPromotionClass() != null && rb.getPromotionClass().size() > 0) { int promotionClassID = playerCharacter.getPromotionClassID(); + valid = !rb.getPromotionClass().containsKey(promotionClassID); if (rb.getPromotionClass().containsKey(promotionClassID)) valid = rb.getRace().get(promotionClassID); } else{