From e2aa7b54a4ec8f6830f7e681e59676dc5c45e6a4 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 9 Mar 2024 11:46:58 -0500 Subject: [PATCH] One like shield check. --- src/engine/objects/ItemTemplate.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index f903f662..0205f054 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -470,8 +470,7 @@ public class ItemTemplate { public static boolean isShield(Item item) { - if (item.template.item_type.equals(Enum.ItemType.ARMOR) && - item.template.item_eq_slots_and.contains(Enum.EquipSlotType.LHELD)) + if (item.template.item_skill_required.containsKey("Block")) return true; return false; @@ -479,8 +478,7 @@ public class ItemTemplate { public static boolean isShield(ItemTemplate template) { - if (template.item_type.equals(Enum.ItemType.ARMOR) && - template.item_eq_slots_and.contains(Enum.EquipSlotType.LHELD)) + if (template.item_skill_required.containsKey("Block")) return true; return false;