public final int calcPAtkSpd(@SuppressWarnings("unused") L2Character attacker, @SuppressWarnings("unused") L2Character target, double rate) { //will fix freeze at >1000 atkspd, optimum calcation between 0 to 1400 return (int) (3 * Math.pow(rate, 2) / 2000 - 4 * rate + 2700); }