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

Loading…
Cancel
Save