in the dmg formula, can you tell a skill to ignore specific states on the target?

Is it possible to create a damage formula that ignores a list of specified states? For example:

-State A gives 25% physical damage reduction
-State B gives 60% fire resistance
-State C prevents critical strikes
-State D gives the target a chance to counterattack

Now I want to make a skill that basically always treats the target(s) as though those states were not present. Is it possible to use the dmg formula to do this?

Thanks in advance!
This would take a lot of work; how much depends on what plugins you're using. It definitely wouldn't be easy to do, though. A and B wouldn't be *too* bad: you could just do an if (b.isStateAffected(x)) for that which increases the damage by 25% (if they have A and the skill deals physical) or 60% if they have B and it's fire. But allowing for critical strikes with an effect that's external to one that stops crits from happening is a taller order than those, and stopping a counterattack would be even more complex.

Be aware though that simply adding the same % back with A and B wouldn't give you what the damage would otherwise have been: if you reduce a number by 25% and then increase it by 25%, you end up with a smaller number than you had originally. To wit:

25% of 100 is 25, so you'd end up with 75 damage. 25% of 75 is 18.75, so you'd get 93.75 damage, rounded to 94, so you're losing 6 damage just from that.
I don't think that possible with only damage formula... i could be wrong though...
- State A -> if i remember correctly Physical damage reduction is calculated AFTER damage formula
- State B -> i think resistance also AFTER
- State C -> Critical also AFTER
- State D -> i think Counter Attack also AFTER

so i think you could not modify what happen after damage formula evaluated...

you might need plugin to do what you want...

hope this help.
Not a direct solution, but might be a starting point:

if (b.isStateAffected(17) {90 + a.mat * 1.5 - b.mdf } else { 45 + a.mat * 1.5 - b.mdf }


-State A gives 25% physical damage reduction

How have you accomplished this?
Trait -> Parameter -> Defense ?
Trait -> Rate -> Elemental Rate ?
Et Cetera ?

-State B gives 60% fire resistance

Which Element # is your Fire Elemental under Types?

-State C prevents critical strikes
-State D gives the target a chance to counterattack

Original thread: https://forums.rpgmakerweb.com/threads/in-the-dmg-formula-can-you-tell-a-skill-to-ignore-specific-states-on-the-target.135326/