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 if ((3*Math.pow(rate, 2)/2000 - 4*rate + 2700) > 1000) { return (1000); } else return (int) (3*Math.pow(rate, 2)/2000 - 4*rate + 2700); }