MV Problem with DoTs and Troop Events (Yanfly DoT plugin)

I'm making a project using the YEP_X_ExtDoT plugin, which works perfectly for custom DoT formulas and such, but there is one very glaring issue.

If an enemy dies to a DoT, all troop events that activate on the enemy's death are skipped entirely.

For example, one of the bosses in my game uses a battleback as their visual rather than an enemy sprite, so when they die, I want that battleback to fade to black.
Example.png

The example above works when the enemy dies to any damage source, but if they die by damage over time, this event does not trigger, I'm guessing because the damage takes place on the player input phase?

This kind of breaks a lot of things in my game, so I'm wondering if there's a way to bypass that or some other way to have events trigger on an enemy dying.

Any help would be much appreciated!
try this?
through troop events, make the enemy unable to die by adding state with resist KO at turn 0.
Then use the troop event you currently have to trigger all their death related effects when they hit 0%, but also remove the KO resist state and kill them off at the end of the page.
try this?
through troop events, make the enemy unable to die by adding state with resist KO at turn 0.
Then use the troop event you currently have to trigger all their death related effects when they hit 0%, but also remove the KO resist state and kill them off at the end of the page.
This works! Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-dots-and-troop-events-yanfly-dot-plugin.168371/