From d34215b035e48661a4d9738b43b5a6a258ff33b1 Mon Sep 17 00:00:00 2001 From: aeauseth Date: Thu, 4 Jan 2024 13:27:44 -0800 Subject: [PATCH] REDUCEDPENETRATION fix #568 --- module/item/item-attack.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/item/item-attack.js b/module/item/item-attack.js index 1b0d37f6..d4510e09 100644 --- a/module/item/item-attack.js +++ b/module/item/item-attack.js @@ -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