States that force an action before chosen action

So I am looking to add a state that causes the person affected to release a lightning attack against all allies right before their chosen action. How would I go about forcing the skill that does the AOE damage and then still execute the action chosen by the character? I am using Yanfly plugins and was wondering if this is possible using the lunatic notetags for the buff and states core.

Original thread: https://forums.rpgmakerweb.com/threads/states-that-force-an-action-before-chosen-action.73721/