Recharge Skill with a State problem

I have an attack that I would like to:

 

1)Attack the enemy

2)Recharge 1 Turn by using (below) as the formula, calling a State that doesn't allow you to attack next turn.

a.add_state(38); a.atk* 5.5 - b.def * 1.5 But my problem is, when testing it, I can attack, it says I need to recharge, I am able to attack again, but when using the attack that calls this state again, the State is not applied and I can still attack instead of recharging.

What is am I doing wrong??

Here is what my state looks like:

State.png
*Bump*
First advice: give it an icon and a higher priority than any other state to check if the state is applied or not (temporary, you can change back after you have found the error).


Do you have any battlescripts or do you use default battle? there are several battlescripts that remove the turns from the mechanics (ATB or ABS Scripts for example), and those might cause problems.
The only scrips I am using for battle are the many MOG_BATTLE scripts.

EDIT:

For some reason, it works now. I think it is because I changed "Auto-Removal Timing" to "Action End" and then the turn duration to 1~1. I guess that's how to do it.

Original thread: https://forums.rpgmakerweb.com/threads/recharge-skill-with-a-state-problem.23868/