From 023f933d0b646ead57e8a4adb9e70699373f70a5 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 25 Jun 2024 19:31:05 -0500 Subject: [PATCH] rune application require/restrict actually use values --- src/engine/net/client/msg/ApplyRuneMsg.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/engine/net/client/msg/ApplyRuneMsg.java b/src/engine/net/client/msg/ApplyRuneMsg.java index 9e4acff7..dd464740 100644 --- a/src/engine/net/client/msg/ApplyRuneMsg.java +++ b/src/engine/net/client/msg/ApplyRuneMsg.java @@ -78,11 +78,12 @@ public class ApplyRuneMsg extends ClientNetMsg { return false; } + boolean valid = true; + //Check race is met ConcurrentHashMap races = rb.getRace(); if (races.size() > 0) { int raceID = playerCharacter.getRaceID(); - boolean valid = false; for (int validID : races.keySet()) { if (validID == raceID) { valid = rb.getRace().get(raceID); @@ -98,7 +99,6 @@ public class ApplyRuneMsg extends ClientNetMsg { ConcurrentHashMap baseClasses = rb.getBaseClass(); if (baseClasses.size() > 0) { int baseClassID = playerCharacter.getBaseClassID(); - boolean valid = false; for (int validID : baseClasses.keySet()) { if (validID == baseClassID) { valid = baseClasses.get(baseClassID); @@ -114,7 +114,6 @@ public class ApplyRuneMsg extends ClientNetMsg { ConcurrentHashMap promotionClasses = rb.getPromotionClass(); if (promotionClasses.size() > 0) { int promotionClassID = playerCharacter.getPromotionClassID(); - boolean valid = false; for (int validID : promotionClasses.keySet()) { if (validID == promotionClassID) { valid = rb.getPromotionClass().get(promotionClassID);