
I am getting this error when I cast a concentration spell.
TypeError: Cannot read property 'get' of undefined
at handleConcentrationSpellCast (apiscript.js:5557:89)
at handleInput (apiscript.js:5426:13)
at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:65:16)
at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:70:8)
at /home/node/d20-api-server/api.js:1736:12
at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560
at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147)
at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546)
at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489)
at Zd.Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425)
Here are the scripts I am currently running with it, and below is the macro I use to select haste from. I am just using the base 5E by roll20 character sheet
@{wtype} &{template:default}{{name=@{selected|character_name} Spellcasting
}}{{Spell Save DC @{selected|spell_save_dc}= @{selected|spell_attack_bonus} to hit with spell attacks
}}{{Cantrip
=[@{Selected|repeating_spell-cantrip_$0_spellname}](~Selected|repeating_spell-cantrip_$0_spell)
[@{Selected|repeating_spell-cantrip_$1_spellname}](~Selected|repeating_spell-cantrip_$1_spell)
[@{Selected|repeating_spell-cantrip_$2_spellname}](~Selected|repeating_spell-cantrip_$2_spell)
[@{Selected|repeating_spell-cantrip_$3_spellname}](~Selected|repeating_spell-cantrip_$3_spell)
[@{Selected|repeating_spell-cantrip_$4_spellname}](~Selected|repeating_spell-cantrip_$4_spell)
[@{Selected|repeating_spell-cantrip_$5_spellname}](~Selected|repeating_spell-cantrip_$5_spell)
}}{{1st Level
=[@{Selected|repeating_spell-1_$0_spellname}](~Selected|repeating_spell-1_$0_spell)
[@{Selected|repeating_spell-1_$1_spellname}](~Selected|repeating_spell-1_$1_spell)
[@{Selected|repeating_spell-1_$2_spellname}](~Selected|repeating_spell-1_$2_spell)
}}{{2nd level
=[@{repeating_spell-2_$0_spellname}](~selected|repeating_spell-2_$0_spell)
[@{repeating_spell-2_$1_spellname}](~selected|repeating_spell-2_$1_spell)
}}{{3rd level
=[@{repeating_spell-3_$0_spellname}](~selected|repeating_spell-3_$0_spell)
[@{repeating_spell-3_$1_spellname}](~selected|repeating_spell-3_$1_spell)
}}{{4th level
=[@{repeating_spell-4_$0_spellname}](~selected|repeating_spell-4_$0_spell)
[@{repeating_spell-4_$1_spellname}](~selected|repeating_spell-4_$1_spell)
}}{{5th level
=[@{repeating_spell-5_$0_spellname}](~selected|repeating_spell-5_$0_spell)
[@{repeating_spell-5_$1_spellname}](~selected|repeating_spell-5_$1_spell)
}}{{6th level
=[@{repeating_spell-6_$0_spellname}](~selected|repeating_spell-6_$0_spell)
}}{{7th level
=[@{repeating_spell-7_$0_spellname}](~selected|repeating_spell-7_$0_spell)
}}