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