From 802651d2d4352dff15739bf592f4de4d4a63a4ea Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 26 Jun 2024 21:01:23 -0500 Subject: [PATCH] rune application error fixed --- src/engine/net/client/msg/ApplyRuneMsg.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/net/client/msg/ApplyRuneMsg.java b/src/engine/net/client/msg/ApplyRuneMsg.java index 6f7da9bd..74e126ce 100644 --- a/src/engine/net/client/msg/ApplyRuneMsg.java +++ b/src/engine/net/client/msg/ApplyRuneMsg.java @@ -78,7 +78,7 @@ public class ApplyRuneMsg extends ClientNetMsg { return false; } - boolean valid = false; + boolean valid; //Check race is met if (rb.getRace() != null && rb.getRace().size() > 0) { @@ -111,7 +111,7 @@ public class ApplyRuneMsg extends ClientNetMsg { int promotionClassID = playerCharacter.getPromotionClassID(); valid = !rb.getPromotionClass().containsKey(promotionClassID); if (rb.getPromotionClass().containsKey(promotionClassID)) - valid = rb.getRace().get(promotionClassID); + valid = rb.getPromotionClass().get(promotionClassID); } else{ valid = true; }