Incrising damage when target is affected by custom state

Hi guys, I don't even know if this is the place to go for this, but I'm trying to do this for a very long time, and my english is not that good.

So the problem is, I can't figure out how to incrise the damage on a skill when the target is inflicted by another state.

I came to this formula for now:
if (b.isStateAffected(11) + 100) + 100 + a.mat * 2 - b.mdf * 2

Any other formulas gave the damage a big round 0, so I guess I can call it a progress, maybe?

I can't seen to figure out how to incrise the damage if the conditional damage is fullfilled.

Thanks for the help anyway 🙂
Solved it...

This is the formula I came up with:

if (b.isStateAffected(11)) {200 + a.mat * 2 - b.mdf * 2} else {100 + a.mat * 2 - b.mdf * 2}

Original thread: https://forums.rpgmakerweb.com/threads/incrising-damage-when-target-is-affected-by-custom-state.120485/