ConditionUsingItemType should check for ArmorType.NONE mask.
This commit is contained in:
parent
7127a112ae
commit
d817e4587b
@ -58,7 +58,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
||||||
if (chest == null)
|
if (chest == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int chestMask = chest.getItem().getItemMask();
|
final int chestMask = chest.getItem().getItemMask();
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
||||||
if (legs == null)
|
if (legs == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int legMask = legs.getItem().getItemMask();
|
final int legMask = legs.getItem().getItemMask();
|
||||||
// return true if legs armor matches too
|
// return true if legs armor matches too
|
||||||
|
@ -58,7 +58,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
||||||
if (chest == null)
|
if (chest == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int chestMask = chest.getItem().getItemMask();
|
final int chestMask = chest.getItem().getItemMask();
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
||||||
if (legs == null)
|
if (legs == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int legMask = legs.getItem().getItemMask();
|
final int legMask = legs.getItem().getItemMask();
|
||||||
// return true if legs armor matches too
|
// return true if legs armor matches too
|
||||||
|
@ -58,7 +58,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
||||||
if (chest == null)
|
if (chest == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int chestMask = chest.getItem().getItemMask();
|
final int chestMask = chest.getItem().getItemMask();
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
||||||
if (legs == null)
|
if (legs == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int legMask = legs.getItem().getItemMask();
|
final int legMask = legs.getItem().getItemMask();
|
||||||
// return true if legs armor matches too
|
// return true if legs armor matches too
|
||||||
|
@ -58,7 +58,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
||||||
if (chest == null)
|
if (chest == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int chestMask = chest.getItem().getItemMask();
|
final int chestMask = chest.getItem().getItemMask();
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
||||||
if (legs == null)
|
if (legs == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int legMask = legs.getItem().getItemMask();
|
final int legMask = legs.getItem().getItemMask();
|
||||||
// return true if legs armor matches too
|
// return true if legs armor matches too
|
||||||
|
@ -58,7 +58,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
||||||
if (chest == null)
|
if (chest == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int chestMask = chest.getItem().getItemMask();
|
final int chestMask = chest.getItem().getItemMask();
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
||||||
if (legs == null)
|
if (legs == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int legMask = legs.getItem().getItemMask();
|
final int legMask = legs.getItem().getItemMask();
|
||||||
// return true if legs armor matches too
|
// return true if legs armor matches too
|
||||||
|
@ -58,7 +58,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
||||||
if (chest == null)
|
if (chest == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int chestMask = chest.getItem().getItemMask();
|
final int chestMask = chest.getItem().getItemMask();
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
||||||
if (legs == null)
|
if (legs == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int legMask = legs.getItem().getItemMask();
|
final int legMask = legs.getItem().getItemMask();
|
||||||
// return true if legs armor matches too
|
// return true if legs armor matches too
|
||||||
|
@ -58,7 +58,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
||||||
if (chest == null)
|
if (chest == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int chestMask = chest.getItem().getItemMask();
|
final int chestMask = chest.getItem().getItemMask();
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
||||||
if (legs == null)
|
if (legs == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int legMask = legs.getItem().getItemMask();
|
final int legMask = legs.getItem().getItemMask();
|
||||||
// return true if legs armor matches too
|
// return true if legs armor matches too
|
||||||
|
@ -58,7 +58,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
||||||
if (chest == null)
|
if (chest == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int chestMask = chest.getItem().getItemMask();
|
final int chestMask = chest.getItem().getItemMask();
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
||||||
if (legs == null)
|
if (legs == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int legMask = legs.getItem().getItemMask();
|
final int legMask = legs.getItem().getItemMask();
|
||||||
// return true if legs armor matches too
|
// return true if legs armor matches too
|
||||||
|
@ -58,7 +58,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
||||||
if (chest == null)
|
if (chest == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int chestMask = chest.getItem().getItemMask();
|
final int chestMask = chest.getItem().getItemMask();
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
||||||
if (legs == null)
|
if (legs == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int legMask = legs.getItem().getItemMask();
|
final int legMask = legs.getItem().getItemMask();
|
||||||
// return true if legs armor matches too
|
// return true if legs armor matches too
|
||||||
|
@ -58,7 +58,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
final L2ItemInstance chest = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
||||||
if (chest == null)
|
if (chest == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int chestMask = chest.getItem().getItemMask();
|
final int chestMask = chest.getItem().getItemMask();
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ public final class ConditionUsingItemType extends Condition
|
|||||||
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
final L2ItemInstance legs = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
|
||||||
if (legs == null)
|
if (legs == null)
|
||||||
{
|
{
|
||||||
return false;
|
return (ArmorType.NONE.mask() & _mask) == ArmorType.NONE.mask();
|
||||||
}
|
}
|
||||||
final int legMask = legs.getItem().getItemMask();
|
final int legMask = legs.getItem().getItemMask();
|
||||||
// return true if legs armor matches too
|
// return true if legs armor matches too
|
||||||
|
Loading…
Reference in New Issue
Block a user