Permorme Action in the End of Turn (Yanfly Plugins)

Greetings

I'm trying make a State 'Fiery Aura'. With these State, every time a turn ends, the actor forcelly uses 'Firebolt' skill.
So, if you choose 'Protect', you will Protect and after this will uses Firebolt
If you use 'Attack', you will attack then uses Firebolt
If you use 'Firebolt', then you will uses Firebolt twice, and go on

Looks really simple, and Yanfly makes something similar here



Help!
Maybe you could look at it like a DoT, and set a script call up as a <Custom Regenerate Effect> in the states notetag. Then use a script call to force an action

$gameTroop.members()[index].forceAction(skillId, targetIndex);

where 'targetIndex' is '-2' for last target

I can't test this theory now because I'm at work. Maybe it's worth a try. You would need to make sure the actor knows the skill I believe before they have access to the state, and you would need to know which actor has the state activated. I don't know, my idea may be too rigid.
Thanks for answer
Since it's a actor's State, should not I use user.forceAction(skillId, -2) instead?

EDIT

Tested the following State notetags
1588021050315.png


Works, but actors uses Skill 9 in infinity loop. Tested with -1 or -2 in Target Index

EDIT 2
Spoiler: "HumanNinjaToo"?
Hey, aren't you the Brave Force author?? If not, nevermind, but if so, man! How about the game??

Original thread: https://forums.rpgmakerweb.com/threads/permorme-action-in-the-end-of-turn-yanfly-plugins.120739/