MZ Guard Locking Actions

So i am making Guard in my game regenerate HP and MP slightly while providing the Extra action state. This works very well, but the problem i am having is that it is very easily abusable: Simply defending at least once for those actions then just keep attacking, you practically get extra actions perpetually + Guarding bonuses, I dont want this, obviously. My solution is to do something like
"If Guard is selected, change all previous and current actions to be Guard" that way, if people are going to guard, they cant cheat it with multiple actions (aside from getting the guard bonus multiple times, which is fine).

So to put it more simply, Guard = Bonuses + Redirecting all actions to be Guard, both before and after Guard is selected.
Hmmm, does it work if you use VS notetags like pre-start action to check

if (user._actions.some(action => action.item().name === "Guard"))
user._actions.forEach(action => action.setSkill(2));

EDIT: Added a missing parenthesis
EDIT2: Of course if you do it like this, you'd still have to select multiple actions. If you want selecting guard to skip selecting the following actions, you'd need other code.
Instead of setSkill(2), I think you should do setGuard().
Yeah, but unless you've edited the codes, it's the same:

Game_Action.prototype.setGuard = function() {
this.setSkill(this.subject().guardSkillId());
};

Game_BattlerBase.prototype.guardSkillId = function() {
return 2;
};
Which is exactly my point – if you have edited the code (or a plugin has), setGaurd() still does the right thing.

Original thread: https://forums.rpgmakerweb.com/threads/guard-locking-actions.182188/