thats what the b in damage formula does.
a.atk * 4 - b.def * 2
a = the caster
b = the target
so a skill with the damage formula
b.def > b.mdf ? a.atk * 4 - b.mdf * 2 : a.atk * 4 - b.def * 2
is targets defense higher then magic defense
"yes, his def is higher" uses formula 1
"no, his magic def is higher" uses formula 2 https://www.rpgmakercentral.com/topic/36290-damage-formulas-101-mv-edition/
My washing machine is a supernatural being. I lost a piece of clothing in there a month ago; searched up and down, inside other clothes, nothing. It just vanished.
Today, put in a new load. When I pull it out, the missing clothing is back! And a sock was sacrificed in the process