From ea548c1eab91039fe44075553a1b5ec4947f9879 Mon Sep 17 00:00:00 2001 From: Stexinator Date: Sat, 26 Jun 2021 09:53:35 +0200 Subject: [PATCH] [Shadowrun5thA] prepare drainattribute import for nightly --- Shadowrun5th/Shadowrun5th.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shadowrun5th/Shadowrun5th.html b/Shadowrun5th/Shadowrun5th.html index 6b8e20869e..922624420e 100644 --- a/Shadowrun5th/Shadowrun5th.html +++ b/Shadowrun5th/Shadowrun5th.html @@ -10827,7 +10827,7 @@ on("change:chummercheckbox", function(){ if(chummerfile.characters.character.magician=="True"){ // HeroLab 'chummer' export uses drainattribute property and a list, this is a workaround for that try{ - attributes.drainattribute="@{"+chummerfile.characters.character.tradition.drainattributes.toLowerCase().substring(6)+"_total}"; + attributes.drainattribute="@{"+chummerfile.characters.character.tradition.drainattributes.match(/[A-Z]+/g)[1].toLowerCase()+"_total}"; } catch(err) { attributes.drainattribute="@{"+chummerfile.characters.character.tradition.drainattribute.attr[1]+"_total}";