Using yanfly After Eval for debuff and include targets debuff resist.

How do I account for a targets resistance for a debuff when trying to apply them via after eval?

<After Eval>
var result = target.result();
if (result.isHit() && Math.random() < 1.5) {
target.addDebuff(3, 3);
}
</After Eval>
You can check with target.debuffRate(id)

Note that in your code Math.random() < 1.5 will always return true - Math.random() generates a number between 0 and 0.9... so it will never be 1, never mind 1.5.

Original thread: https://forums.rpgmakerweb.com/threads/using-yanfly-after-eval-for-debuff-and-include-targets-debuff-resist.153215/