Code:
Ideally, I'd prefer the DEF debuff to be attached to the state and not directly alter the target's stats like in my example. (That way the effects are automatically undone when the state is removed)<Custom Apply Effect>
target._paramPlus[3] -= origin.atk;
</Custom Apply Effect>
<Custom Remove Effect>
target._paramPlus[3] += origin.atk;
</Custom Remove Effect>