Disable action system?

I'm using SAS - Sapphire Action System in my project. I recently created a system where the player, after being hit, graphically shows a reaction. Like this: (Click here to watch the GIF).

I increased the time of this "hurt" state, so it lasts longer to reinforce the importance of not being hit. An issue arises because of that, however: for the duration of the state, the player can still attack normally because of the script. I can make so that the player stays with 0 stamina during the state so that when he attacks he deals 0 damage, however, it will still show the animation of the sword being swung, and i don't want that: the player is incapacitated.

So here i pose the question: what can i do with the script to allow me to create a call that cancels then restarts the player ability to attack? I'd be thankful for getting any direction.

I'd deeply appreciate any help! 😀
Nevermind! With enough messing around i was able to find a way to associate a switch to the condition of the player executing an attack. I'm a newbie at RGSS but still with some curiosity i could solve the problem. Thank you!

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/disable-action-system.123265/