MZ Getting a variable to decrement only once after a multi-hit attack

So I have a boss that applies a state to himself; when this state is applied, it sets a variable to a value of 5. Each time the boss is attacked while this state is active, the variable decreases by 1. I have achieved this using a state notetag from the VisuStella Battle Core:

JavaScript:
<JS Post-Damage As Target>
if (value > 0) {
    $gameVariables.setValue(1, $gameVariables.value(1) - 1);
  }
</JS Post-Damage As Target>

So that's all well and good...but here's the thing. One of my party members has a damaging skill that has a scope of 4 Random Enemies. The boss is the only target in this fight, so he gets hit 4 times, and the variable decreases by 4, 1 for each hit. I don't want that to happen, I want it to only decrease by 1, period, for each attack skill used on him, regardless of the number of hits the skill does. Is there a convenient way, either through the base engine or through VisuStella plugins, to make that happen?
i think that tag's code runs off of an action?
so you should be able to do something like this
Code:
<JS Post-Damage As Target>
if (value > 0 && !this.struck) {
    $gameVariables.setValue(1, $gameVariables.value(1) - 1);
    this.struck = true;
  }
</JS Post-Damage As Target>
Awesome, this worked perfectly, thank you so much. I'm still really unfamiliar with what can and can't be done in notetags so I never would've figured this out on my own.

Mods can go ahead and close this one out.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/getting-a-variable-to-decrement-only-once-after-a-multi-hit-attack.178840/