From 04203c092a412091da56ef0dcd83beeeff1a6078 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 21 Jul 2024 19:32:16 -0500 Subject: [PATCH] Lowering stats below item requirement unequips and removes item from map correctly --- src/engine/objects/CharacterItemManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index 3c8c5280..3fbf8a77 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -1400,6 +1400,7 @@ public class CharacterItemManager { if (!ItemManager.validForSkills(item, pc.getSkills())) { this.forceToInventory(slot, item, pc, initialized); + this.equipped.remove(slot); pc.applyBonuses(); } }