Skip to content

Commit

Permalink
Merge pull request dmdorman#585 from aeauseth/main
Browse files Browse the repository at this point in the history
REDUCEDPENETRATION fix dmdorman#568
  • Loading branch information
aeauseth authored Jan 4, 2024
2 parents ec6f3c4 + d34215b commit 621254b
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 621254b

Please sign in to comment.