Making a SMT style charge status

I'm wondering if it'd be possible to make a status that goes away after the user attacks, similar to the charge skills from SMT, where using the skill applies a charge status affect that increases the damage of the next attack, and lasts until the user actually does an attack.
Does giving the state a duration of 1 action not do that? Or you're saying there are other actions they might take that are not attacks, and it should persist until then?

If that's the case, what's your definition of attack? Something that causes damage?
The definition of an attack in this case is a damaging skill, as in SMT you can charge then do other skills, such as healing or buffing without expending the charge
I'm wondering if it'd be possible to make a status that goes away after the user attacks, similar to the charge skills from SMT
a simple form of it would be this by using yanfly's buffs and states plugin
Code:
<Custom Confirm Effect>
if (this.isDamage(){
  value = Math.ceil(value*2.5);
  user.removeState(stateId);
}
</Custom Confirm Effect>
if you want to do something like charge vs concentrate where one works for phys and the other for mag, youll have to add extra conditions to the first line to narrow it down

Original thread: https://forums.rpgmakerweb.com/threads/making-a-smt-style-charge-status.171477/