int damage = (int) (target.getCurrentCp() * (1 - skill.getPower()));
// Manage attack or cast break of the target (calculating rate, sending message...)
if(!target.isRaid() && Formulas.calcAtkBreak(target, damage))
{
target.breakAttack();
target.breakCast();
}
skill.getEffects(activeChar, target, ss, sps, bss);
activeChar.sendDamageMessage(target, damage, false, false, false);
target.setCurrentCp(target.getCurrentCp() - damage);