One like shield check.

This commit is contained in:
2024-03-09 11:46:58 -05:00
parent 6f028ab8c8
commit e2aa7b54a4
+2 -4
View File
@@ -470,8 +470,7 @@ public class ItemTemplate {
public static boolean isShield(Item item) { public static boolean isShield(Item item) {
if (item.template.item_type.equals(Enum.ItemType.ARMOR) && if (item.template.item_skill_required.containsKey("Block"))
item.template.item_eq_slots_and.contains(Enum.EquipSlotType.LHELD))
return true; return true;
return false; return false;
@@ -479,8 +478,7 @@ public class ItemTemplate {
public static boolean isShield(ItemTemplate template) { public static boolean isShield(ItemTemplate template) {
if (template.item_type.equals(Enum.ItemType.ARMOR) && if (template.item_skill_required.containsKey("Block"))
template.item_eq_slots_and.contains(Enum.EquipSlotType.LHELD))
return true; return true;
return false; return false;