From ebf7130b6304e430e3c64d9557f2b55027000c9c Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 27 Mar 2024 18:32:46 -0500 Subject: [PATCH] defense bug fix --- src/engine/objects/AbstractCharacter.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/objects/AbstractCharacter.java b/src/engine/objects/AbstractCharacter.java index a3d1fc1f..ebe2cf92 100644 --- a/src/engine/objects/AbstractCharacter.java +++ b/src/engine/objects/AbstractCharacter.java @@ -956,6 +956,10 @@ public abstract class AbstractCharacter extends AbstractWorldObject { if (armor.template.item_skill_used.isEmpty()) return ib.item_defense_rating; + if(armor.template.item_skill_used.length() < 1){ + return ib.item_defense_rating; + } + CharacterSkill armorSkill = playerCharacter.skills.get(armor.template.item_skill_used); if (armorSkill == null) { Logger.error("Player " + playerCharacter.getObjectUUID()