MV [YEP Buffs & States Core] State that reflects certain skills

There's a certain skill/state I've been trying and failing to create for a while now, with the help of Buffs & States Core (which is amazing), and I'm going a little crazy.

The goal is to give the whole party a state that can reflect specifically "Breath" magic (magic skills with "Breath" in the name). I can do this check fine already, that isn't the problem. The problem is the reflection itself.

I cannot for the life of me find a way to force-reflect the skill. I've went through the BattleManager code and Game_Action code and etc several times, tried various functions, tried adding and unadding a dummy state with 1000% magic reflection, nothing seems to really work.

Would anyone be able to help me with this?
For a slick version, you might want to look into Yanfly's Counter Control. Give your states counter conditions against breath attacks and create a "counter breath" to use in return.

To just use Buffs & States, we'll get a little more bootleg-y and try this:
Code:
<Custom React Effect>
if (this.item().name.includes("Breath"))
{
    value=0;
    this.apply(user);
}
</Custom React Effect>
It seems to work well enough for the time being, though now I'm having an issue with only one damage popup appearing, even if I supposedly give a delay to simultaneous popups and a random offset to each one (using Victor's Popups with DreamX's compatibility plugin).

I'll look into how I could do this with Counter Control if I ever get around to swiping the bundle, which is very possible.

Thanks for the help! 😂

EDIT: Forgot the breath attack's state would still be applied even with this 😅
Yeah, this would set the incoming damage to 0 but not prevent any of the Effects attached to the skill from running.

Because of how the Buffs & States notetags are placed in the structure of the attack, I don't know of a way to stop that from happening.

Custom Confirm takes place before the game checks for the action to hit and Custom React takes place after damage calculation - there isn't anything that goes after the hit is confirmed but before it starts executing all the results, so you can't change it to a miss partway through.

For something that works more fully, you'd need to look at Counter Control, as far as I can think.

Original thread: https://forums.rpgmakerweb.com/threads/yep-buffs-states-core-state-that-reflects-certain-skills.153743/