Script in Question
This script adds a new event span for troops that runs after each action. It's super useful, and several things in my current project rely on it. I only just now realized a huge issue with it, however. If a state has its auto-removal timing set to "Action End" (including buffs/debuffs, which appear to run on the same system), the state will never expire. I made absolutely sure to test it in a new project, too. New project or not, the issue persists.
In my project I'm using a script that allows the player to see how many turns/actions are left before a state/buff/debuff expires, and this has shown me that the state will tick down normally until it hits 0. Once it hits 0, it stays at 0, and never goes away on its own. It's also worth noting that the script doesn't have to be actively used for the issue to take place. Simply having it in the project causes the issue. If anyone can please identify the issue and hopefully a solution, I'd greatly appreciate it!
This script adds a new event span for troops that runs after each action. It's super useful, and several things in my current project rely on it. I only just now realized a huge issue with it, however. If a state has its auto-removal timing set to "Action End" (including buffs/debuffs, which appear to run on the same system), the state will never expire. I made absolutely sure to test it in a new project, too. New project or not, the issue persists.
In my project I'm using a script that allows the player to see how many turns/actions are left before a state/buff/debuff expires, and this has shown me that the state will tick down normally until it hits 0. Once it hits 0, it stays at 0, and never goes away on its own. It's also worth noting that the script doesn't have to be actively used for the issue to take place. Simply having it in the project causes the issue. If anyone can please identify the issue and hopefully a solution, I'd greatly appreciate it!