MV Problem with custom leave effect code.

Hi ! I have a issue with something I try to do with Yanfly Buff and states core plugin. I have a problem with a state thats work with a custom leave effect. Normaly this states activate a skill when the cooldown reach 0 and it work but I try to create a skill that can help this state to happen faster by attacking and reducing the cooldown by 1 with this simple formula...

<State 76 Turns: -1>

But it doesnt work , this bypass the custom leave effect completely and the state just disappear.
Here a link to the plugin I use

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-custom-leave-effect-code.129878/