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