phylll / mychs-macro-magic

A simple, sane, and friendly little scripting language for your Roll20 macros.
MIT License
0 stars 0 forks source link

Critical effects handling: allow for more than one persistent effect #76

Closed phylll closed 9 months ago

phylll commented 9 months ago

meleeAttackFailure.20 should, as per its description, set two persistent effects: one on the reference token (no attack next round) and one on its opponent (+4 on attack next round). The data structure, as defined and handled right now, allows only for one persistent effect per critical effect definition. Would it work to simply treat criticalEffect.persistent as a list of persistentEffect structs?