Yanfly States Custom Effect Issues with Evasion

So, I'm using Yanfly's Buffs and States Core and have been trying to make a defensive state that deflects weak attacks. After much trial and error I have determined that you cannot decide the success rate of the skill before the game has decided it, which then would overwrite your decision. So, as a work around I decided I'd just increase the target's evasion rate if the attack was weak enough. The only problem is the target's evasion isn't changing.

This is what I have under <Custom Select Effect>:

alert([target.eva, target.mev, target.cev]);target.eva += 1;target.mev += 1;target.cev += 0.5;alert([target.eva, target.mev, target.cev]);It's buried in an if, then statement that's being used to determine if the attack is a weak attack. That part works, I'm not worried about that, after all both of the alerts do fire. Even more baffling is the evasions listed, do in fact match the targets evasions. So, in theory the target.eva += 1; would be increasing the correct stat on the correct character, but nothing happens. Both, alerts return identical values and the skill still hits as if the original evasion is in play.

So the question is, what am I doing wrong?
The xparams (eva, mev, etc.) are unlike the params (atk, def, mat, mdf, etc). You cannot add to them and make them change since they are unconfigurable as they're strictly calculated based on traits. My only suggestion for you is to make a dummy state that has 100% evasion, magic evasion, 50% critical evasion, add it to the target, and then remove it with a deselect effect.
Thanks a bunch, Yanfly, it worked perfectly. I just need to balance the conditions for its activation now.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-states-custom-effect-issues-with-evasion.54254/