Browse Source

Lowering stats below item requirement unequips and removes item from map correctly

magicbox-1.5.2.1
FatBoy-DOTC 5 months ago
parent
commit
04203c092a
  1. 1
      src/engine/objects/CharacterItemManager.java

1
src/engine/objects/CharacterItemManager.java

@ -1400,6 +1400,7 @@ public class CharacterItemManager {
if (!ItemManager.validForSkills(item, pc.getSkills())) { if (!ItemManager.validForSkills(item, pc.getSkills())) {
this.forceToInventory(slot, item, pc, initialized); this.forceToInventory(slot, item, pc, initialized);
this.equipped.remove(slot);
pc.applyBonuses(); pc.applyBonuses();
} }
} }

Loading…
Cancel
Save