Browse Source

One like shield check.

combat-2
MagicBot 8 months ago
parent
commit
e2aa7b54a4
  1. 6
      src/engine/objects/ItemTemplate.java

6
src/engine/objects/ItemTemplate.java

@ -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;

Loading…
Cancel
Save