Browse Source

More itembase refactor

combat-2
MagicBot 8 months ago
parent
commit
60c80ceee8
  1. 4
      src/engine/objects/CharacterItemManager.java

4
src/engine/objects/CharacterItemManager.java

@ -1210,14 +1210,10 @@ public class CharacterItemManager { @@ -1210,14 +1210,10 @@ public class CharacterItemManager {
return false;
}
// Item must be in inventory to equip
if (!this.inventory.contains(i) && this.absCharacter.getObjectType() != GameObjectType.Mob)
return false;
// make sure player can equip item
if (i.getItemBase() == null)
return false;
if (!ItemTemplate.canEquip(slot, this, absCharacter, i) && this.absCharacter.getObjectType() != GameObjectType.Mob)
return false;

Loading…
Cancel
Save