Double attDiff = attacker.calcStat(element.getAttack(), power) - defender.calcStat(element.getDefence(), 0.);
if ((pAttacker != null) && pAttacker.isDebug())
{
pAttacker.sendMessage("Element: " + element.name());
pAttacker.sendMessage("Attack: " + attacker.calcStat(element.getAttack(), power));
pAttacker.sendMessage("Defence: " + defender.calcStat(element.getDefence(), 0.));
pAttacker.sendMessage("Modifier: " + (attDiff < 0 ? "On defense " : "On attack ") + AttributeDamageResistTable.getInstance().getAttributeBonus(attDiff));
}
if(attDiff < 0)
{
return value / AttributeDamageResistTable.getInstance().getAttributeBonus(attDiff);