All pastes #65720 Raw Edit

Untitled

public text v1 · immutable
#65720 ·published 2006-06-15 02:13 UTC
rendered paste body
	public int calculateAttackSpeed(L2Character target, @SuppressWarnings("unused") L2ItemInstance weaponInst)
	{
		double atkSpd = 0;
        if (this instanceof L2Summon)
        {
            atkSpd = getPAtkSpd();
        } else
        {
		L2Weapon weapon = this.getActiveWeaponItem();
		if (weapon !=null)
		{
			switch (weapon.getItemType())
			{
				case DAGGER:
					atkSpd = getStat().getPAtkSpd();
					atkSpd /= 1.15;
					break;
				default:
					atkSpd = getStat().getPAtkSpd();
				}
			}
        else if (getStat().getPAtkSpd() > 1000);
		{
            atkSpd = 1000;
		}
        }
		return Formulas.getInstance().calcPAtkSpd(this, target, atkSpd);

	}