How to make a successful defend prevent status effects? [Galv's Timed Button Attacks]

Hiya guys.

I'm having a bit of trouble with a feature I want implemented. I'm using Galv's Timed Button Attacks in my battle system, and I wanted to implement a feature where a successful defend from an attack that would give you a status effect will prevent it from being inflicted on the actor.

I tried doing it with my very limited understanding of RGSS3, but to no avail :c

any help is welcomed!

Script
Have you tried putting
<btnrstates x,x,x> # Remove states with id x when timing is hit
on the skill or actor?

It may not be what you need, but it was an option in the script.
Sadly, that didn't work :\. It adds the state anyways.
Bump?
...Bump?

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-successful-defend-prevent-status-effects-galvs-timed-button-attacks.83857/