I am working on my short/long rest script , and would like to turn off short-lived blessings via the API. This is what I am doing now: var attr = ... // find the relevant repeating_acmod_$0_global_ac_active_flag attr
if (attr.get("current") == "1") {
attr.set({ current: "0" });
}
This successfully toggles the checkbox off in the UI, but it does not change the characters current AC. Curiously, toggling it on again via the UI does nothing, then back off finally updates the AC correctly. What do I do to properly turn off a global modifier?