Spear weapon enchant stats according to Wiki.

Contributed by npocToz.
This commit is contained in:
MobiusDevelopment 2019-07-13 06:51:18 +00:00
parent 3fb996b95b
commit 9c27bf30d6
12 changed files with 60 additions and 48 deletions

View File

@ -27,6 +27,7 @@ import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
import org.l2jmobius.gameserver.model.items.Item; import org.l2jmobius.gameserver.model.items.Item;
import org.l2jmobius.gameserver.model.items.instance.ItemInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
import org.l2jmobius.gameserver.model.items.type.CrystalType; import org.l2jmobius.gameserver.model.items.type.CrystalType;
import org.l2jmobius.gameserver.model.items.type.WeaponType;
/** /**
* @author UnAfraid * @author UnAfraid
@ -222,7 +223,7 @@ public interface IStatsFunction
{ {
case R: case R:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -234,7 +235,7 @@ public interface IStatsFunction
} }
case S: case S:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -252,7 +253,7 @@ public interface IStatsFunction
} }
case A: case A:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -271,7 +272,7 @@ public interface IStatsFunction
case B: case B:
case C: case C:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {

View File

@ -27,6 +27,7 @@ import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
import org.l2jmobius.gameserver.model.items.Item; import org.l2jmobius.gameserver.model.items.Item;
import org.l2jmobius.gameserver.model.items.instance.ItemInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
import org.l2jmobius.gameserver.model.items.type.CrystalType; import org.l2jmobius.gameserver.model.items.type.CrystalType;
import org.l2jmobius.gameserver.model.items.type.WeaponType;
/** /**
* @author UnAfraid * @author UnAfraid
@ -222,7 +223,7 @@ public interface IStatsFunction
{ {
case R: case R:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -234,7 +235,7 @@ public interface IStatsFunction
} }
case S: case S:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -252,7 +253,7 @@ public interface IStatsFunction
} }
case A: case A:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -271,7 +272,7 @@ public interface IStatsFunction
case B: case B:
case C: case C:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {

View File

@ -27,6 +27,7 @@ import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
import org.l2jmobius.gameserver.model.items.Item; import org.l2jmobius.gameserver.model.items.Item;
import org.l2jmobius.gameserver.model.items.instance.ItemInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
import org.l2jmobius.gameserver.model.items.type.CrystalType; import org.l2jmobius.gameserver.model.items.type.CrystalType;
import org.l2jmobius.gameserver.model.items.type.WeaponType;
/** /**
* @author UnAfraid * @author UnAfraid
@ -222,7 +223,7 @@ public interface IStatsFunction
{ {
case R: case R:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -234,7 +235,7 @@ public interface IStatsFunction
} }
case S: case S:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -252,7 +253,7 @@ public interface IStatsFunction
} }
case A: case A:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -271,7 +272,7 @@ public interface IStatsFunction
case B: case B:
case C: case C:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {

View File

@ -27,6 +27,7 @@ import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
import org.l2jmobius.gameserver.model.items.Item; import org.l2jmobius.gameserver.model.items.Item;
import org.l2jmobius.gameserver.model.items.instance.ItemInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
import org.l2jmobius.gameserver.model.items.type.CrystalType; import org.l2jmobius.gameserver.model.items.type.CrystalType;
import org.l2jmobius.gameserver.model.items.type.WeaponType;
/** /**
* @author UnAfraid * @author UnAfraid
@ -222,7 +223,7 @@ public interface IStatsFunction
{ {
case R: case R:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -234,7 +235,7 @@ public interface IStatsFunction
} }
case S: case S:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -252,7 +253,7 @@ public interface IStatsFunction
} }
case A: case A:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -271,7 +272,7 @@ public interface IStatsFunction
case B: case B:
case C: case C:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {

View File

@ -27,6 +27,7 @@ import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
import org.l2jmobius.gameserver.model.items.Item; import org.l2jmobius.gameserver.model.items.Item;
import org.l2jmobius.gameserver.model.items.instance.ItemInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
import org.l2jmobius.gameserver.model.items.type.CrystalType; import org.l2jmobius.gameserver.model.items.type.CrystalType;
import org.l2jmobius.gameserver.model.items.type.WeaponType;
/** /**
* @author UnAfraid * @author UnAfraid
@ -222,7 +223,7 @@ public interface IStatsFunction
{ {
case R: case R:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -234,7 +235,7 @@ public interface IStatsFunction
} }
case S: case S:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -252,7 +253,7 @@ public interface IStatsFunction
} }
case A: case A:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -271,7 +272,7 @@ public interface IStatsFunction
case B: case B:
case C: case C:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {

View File

@ -27,6 +27,7 @@ import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
import org.l2jmobius.gameserver.model.items.Item; import org.l2jmobius.gameserver.model.items.Item;
import org.l2jmobius.gameserver.model.items.instance.ItemInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
import org.l2jmobius.gameserver.model.items.type.CrystalType; import org.l2jmobius.gameserver.model.items.type.CrystalType;
import org.l2jmobius.gameserver.model.items.type.WeaponType;
/** /**
* @author UnAfraid * @author UnAfraid
@ -222,7 +223,7 @@ public interface IStatsFunction
{ {
case R: case R:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -234,7 +235,7 @@ public interface IStatsFunction
} }
case S: case S:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -252,7 +253,7 @@ public interface IStatsFunction
} }
case A: case A:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -271,7 +272,7 @@ public interface IStatsFunction
case B: case B:
case C: case C:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {

View File

@ -27,6 +27,7 @@ import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
import org.l2jmobius.gameserver.model.items.Item; import org.l2jmobius.gameserver.model.items.Item;
import org.l2jmobius.gameserver.model.items.instance.ItemInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
import org.l2jmobius.gameserver.model.items.type.CrystalType; import org.l2jmobius.gameserver.model.items.type.CrystalType;
import org.l2jmobius.gameserver.model.items.type.WeaponType;
/** /**
* @author UnAfraid * @author UnAfraid
@ -222,7 +223,7 @@ public interface IStatsFunction
{ {
case R: case R:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -234,7 +235,7 @@ public interface IStatsFunction
} }
case S: case S:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -252,7 +253,7 @@ public interface IStatsFunction
} }
case A: case A:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -271,7 +272,7 @@ public interface IStatsFunction
case B: case B:
case C: case C:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {

View File

@ -27,6 +27,7 @@ import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
import org.l2jmobius.gameserver.model.items.Item; import org.l2jmobius.gameserver.model.items.Item;
import org.l2jmobius.gameserver.model.items.instance.ItemInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
import org.l2jmobius.gameserver.model.items.type.CrystalType; import org.l2jmobius.gameserver.model.items.type.CrystalType;
import org.l2jmobius.gameserver.model.items.type.WeaponType;
/** /**
* @author UnAfraid * @author UnAfraid
@ -222,7 +223,7 @@ public interface IStatsFunction
{ {
case R: case R:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -234,7 +235,7 @@ public interface IStatsFunction
} }
case S: case S:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -252,7 +253,7 @@ public interface IStatsFunction
} }
case A: case A:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -271,7 +272,7 @@ public interface IStatsFunction
case B: case B:
case C: case C:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {

View File

@ -27,6 +27,7 @@ import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
import org.l2jmobius.gameserver.model.items.Item; import org.l2jmobius.gameserver.model.items.Item;
import org.l2jmobius.gameserver.model.items.instance.ItemInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
import org.l2jmobius.gameserver.model.items.type.CrystalType; import org.l2jmobius.gameserver.model.items.type.CrystalType;
import org.l2jmobius.gameserver.model.items.type.WeaponType;
/** /**
* @author UnAfraid * @author UnAfraid
@ -222,7 +223,7 @@ public interface IStatsFunction
{ {
case R: case R:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -234,7 +235,7 @@ public interface IStatsFunction
} }
case S: case S:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -252,7 +253,7 @@ public interface IStatsFunction
} }
case A: case A:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -271,7 +272,7 @@ public interface IStatsFunction
case B: case B:
case C: case C:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {

View File

@ -27,6 +27,7 @@ import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
import org.l2jmobius.gameserver.model.items.Item; import org.l2jmobius.gameserver.model.items.Item;
import org.l2jmobius.gameserver.model.items.instance.ItemInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
import org.l2jmobius.gameserver.model.items.type.CrystalType; import org.l2jmobius.gameserver.model.items.type.CrystalType;
import org.l2jmobius.gameserver.model.items.type.WeaponType;
/** /**
* @author UnAfraid * @author UnAfraid
@ -222,7 +223,7 @@ public interface IStatsFunction
{ {
case R: case R:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -234,7 +235,7 @@ public interface IStatsFunction
} }
case S: case S:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -252,7 +253,7 @@ public interface IStatsFunction
} }
case A: case A:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -271,7 +272,7 @@ public interface IStatsFunction
case B: case B:
case C: case C:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {

View File

@ -27,6 +27,7 @@ import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
import org.l2jmobius.gameserver.model.items.Item; import org.l2jmobius.gameserver.model.items.Item;
import org.l2jmobius.gameserver.model.items.instance.ItemInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
import org.l2jmobius.gameserver.model.items.type.CrystalType; import org.l2jmobius.gameserver.model.items.type.CrystalType;
import org.l2jmobius.gameserver.model.items.type.WeaponType;
/** /**
* @author UnAfraid * @author UnAfraid
@ -222,7 +223,7 @@ public interface IStatsFunction
{ {
case R: case R:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -234,7 +235,7 @@ public interface IStatsFunction
} }
case S: case S:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -252,7 +253,7 @@ public interface IStatsFunction
} }
case A: case A:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -271,7 +272,7 @@ public interface IStatsFunction
case B: case B:
case C: case C:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {

View File

@ -27,6 +27,7 @@ import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
import org.l2jmobius.gameserver.model.items.Item; import org.l2jmobius.gameserver.model.items.Item;
import org.l2jmobius.gameserver.model.items.instance.ItemInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
import org.l2jmobius.gameserver.model.items.type.CrystalType; import org.l2jmobius.gameserver.model.items.type.CrystalType;
import org.l2jmobius.gameserver.model.items.type.WeaponType;
/** /**
* @author UnAfraid * @author UnAfraid
@ -222,7 +223,7 @@ public interface IStatsFunction
{ {
case R: case R:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -234,7 +235,7 @@ public interface IStatsFunction
} }
case S: case S:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -252,7 +253,7 @@ public interface IStatsFunction
} }
case A: case A:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {
@ -271,7 +272,7 @@ public interface IStatsFunction
case B: case B:
case C: case C:
{ {
if (item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) if ((item.getWeaponItem().getBodyPart() == Item.SLOT_LR_HAND) && (item.getWeaponItem().getItemType() != WeaponType.POLE))
{ {
if (item.getWeaponItem().getItemType().isRanged()) if (item.getWeaponItem().getItemType().isRanged())
{ {