forked from MagicBane/Server
One like shield check.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user