From bf0294b33eb3ffa02fa97bf66acb59f2191c8eb9 Mon Sep 17 00:00:00 2001 From: Stexinator Date: Fri, 1 Jul 2022 21:09:45 +0200 Subject: [PATCH] [Shadowrun5thA] fix p -> s dmg detection --- Shadowrun5th/Shadowrun5th.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shadowrun5th/Shadowrun5th.html b/Shadowrun5th/Shadowrun5th.html index e0783162bd..be8ac637e7 100644 --- a/Shadowrun5th/Shadowrun5th.html +++ b/Shadowrun5th/Shadowrun5th.html @@ -17017,7 +17017,7 @@ const rollReactSoak = async (ev) => { let dmgTaken = dmgRoll.attackDamage - soakSuccesses; let dmgType = dmgRoll.attackDmgType; - if(dmgType.includes('P')) { + if(dmgType.includes('P') && attrs.armor_total > 0) { dmgType = dmgRoll.attackDamage > (attrs.armor_total + armorPenetration + soakRoll.results.mod.result) ? dmgRoll.attackDmgType : 'S'; console.log("resulting dmgType: "+dmgType+ " dmg: "+dmgRoll.attackDamage+" armorResult: "+ (attrs.armor_total + armorPenetration + soakRoll.results.mod.result)); }