How to toggle Custom Regen state for Yanfly Action Sequence 1

I was wondering if there was a way to toggle on and off a custom regen state with yanfly action sequences pack 1.

This is the formula that will be used when you use the Guard command.

<Custom Regenerate Effect>
var mpheal = (2);
user.gainMp(+mpheal );
user.startDamagePopup();
user.clearResult();
</Custom Regenerate Effect>

I want it toggle this regen effect off while One of my character enters a certain state. While they use the Guard command.
bump

Original thread: https://forums.rpgmakerweb.com/threads/how-to-toggle-custom-regen-state-for-yanfly-action-sequence-1.106300/