{
return;
}
L2Player player = (L2Player) playable;
L2ItemInstance weaponInst = player.getActiveWeaponInstance();
L2Weapon weaponItem = player.getActiveWeaponItem();
int SoulshotId = item.getItemId();
boolean isAutoSoulShot = false;
L2Item itemTemplate = ItemTable.getInstance().getTemplate(item.getItemId());
if(player.getAutoSoulShot().contains(SoulshotId))
{
isAutoSoulShot = true;
}
if(weaponInst == null)
{
if(!isAutoSoulShot)
{
player.sendPacket(Msg.CANNOT_USE_SPIRITSHOTS);
}
return;
}
// spiritshot is already active
if(weaponInst.getChargedSpiritshot() != L2ItemInstance.CHARGED_NONE)
{
return;
}
int SpiritshotId = item.getItemId();
int grade = weaponItem.getCrystalType().externalOrdinal;
int soulSpiritConsumption = weaponItem.getSpiritShotCount();
long count = item.getCount();
if(soulSpiritConsumption == 0)
{
// Can't use Spiritshots
if(isAutoSoulShot)