MV Critical Hit State Help

I am trying to create a state that provides the actor a 75% evasion buff when they are critically hit.

I'm using Yanfly's BuffStatesCore, VisualStateFX, and AutoPassiveStates.

I have a <Passive State: 62> linked from the armor's notetag to state 62 with this notetag:

<Custom Respond Effect>
if (this.isDamage() &&
this.isCritical()) {
target.addState(63);
}
</Custom Respond Effect>

State 63 is my buff, where in the traits box I have ex-parm of 75% Evasion and is removed after battle or 3 rounds and with a notetag of <State Animation: 138>

I believe my problem is with the custom respond effect scripting since I don't have much exp with scripts and copy and paste things I find edit them and so on. I know the Passive State 62 is applied because if I add a state overlay it works.

Thanks for any help and advice in advance.
this.isCritical()
try
Code:
target.result().critical
try
Code:
target.result().critical
This worked thankyou!

Original thread: https://forums.rpgmakerweb.com/threads/critical-hit-state-help.175685/