Skip to content

Commit

Permalink
REDUCEDPENETRATION fix dmdorman#568
Browse files Browse the repository at this point in the history
  • Loading branch information
aeauseth committed Jan 4, 2024
1 parent ec6f3c4 commit d34215b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/item/item-attack.js
Original file line number Diff line number Diff line change
Expand Up @@ -2232,9 +2232,9 @@ async function _calcDamage(damageResult, item, options) {
let REDUCEDPENETRATION = item.findModsByXmlid("REDUCEDPENETRATION");
if (REDUCEDPENETRATION) {
if (item.killing) {
body = Math.max(0, body - options.resistantValue);
body = Math.max(0, body - (options.resistantValue || 0));
}
body = Math.max(0, body - options.defenseValue);
body = Math.max(0, body - (options.defenseValue || 0));
}

// determine knockback
Expand Down

0 comments on commit d34215b

Please sign in to comment.