From d6c105ff5b5e5dbc8a5b803fbf877d5937878576 Mon Sep 17 00:00:00 2001 From: Stexinator Date: Sun, 20 Feb 2022 15:21:40 +0100 Subject: [PATCH] [Shadowrun5thA] fix autododge for vehicles and drones --- Shadowrun5th/Shadowrun5th.html | 86 ++++++++++++++++++---------------- 1 file changed, 45 insertions(+), 41 deletions(-) diff --git a/Shadowrun5th/Shadowrun5th.html b/Shadowrun5th/Shadowrun5th.html index 19192f2013..c28cca7949 100644 --- a/Shadowrun5th/Shadowrun5th.html +++ b/Shadowrun5th/Shadowrun5th.html @@ -9318,8 +9318,8 @@ Click again to switch to Manual and Remote">
- - + +
@@ -9373,12 +9373,12 @@ Click again to switch to Manual and Remote">
- - + +
- - + +
@@ -9401,12 +9401,12 @@ Click again to switch to Manual and Remote">
- - + +
- - + +
@@ -9473,8 +9473,8 @@ Click again to switch to Manual and Remote">
- - + +
@@ -9528,12 +9528,12 @@ Click again to switch to Manual and Remote">
- - + +
- - + +
@@ -9556,12 +9556,12 @@ Click again to switch to Manual and Remote">
- - + +
- - + +
@@ -9863,8 +9863,8 @@ Click again to switch to Manual and Remote">
- - + +
@@ -9918,12 +9918,12 @@ Click again to switch to Manual and Remote">
- - + +
- - + +
@@ -9946,12 +9946,12 @@ Click again to switch to Manual and Remote">
- - + +
- - + +
@@ -10018,8 +10018,8 @@ Click again to switch to Manual and Remote">
- - + +
@@ -10073,12 +10073,12 @@ Click again to switch to Manual and Remote">
- - + +
- - + +
@@ -10101,12 +10101,12 @@ Click again to switch to Manual and Remote">
- - + +
- - + +
@@ -16791,12 +16791,16 @@ const rollDogableAttack = async (rollPart, dmgType) => { let attrs = await asw.getAttrs(['character_name']); // Storing all the passthrough data required for the next roll in an Object helps for larger rolls + let attackDmgType = dmgType[Object.keys(dmgType)[0]] + if(!attackDmgType) { + attackDmgType = 'P'; + } let rollData = { attacker: attrs.character_name, attackHits: attackRoll.results.result.result, attackAp: attackRoll.results.after1.result, attackDV: attackRoll.results.after1_num.result, - attackDmgType: dmgType[Object.keys(dmgType)[0]], + attackDmgType: attackDmgType, } finishRoll(