MV YANFLY ATB. How to store previous action of a actor.

If a user is forced to use an action via event while they are charging an action, they lose there charged action.
I'm trying to store the charged action as a variable but am unsure how to do it in yanfly atb script.
I think it has something to do with 'battler.currentAction' or 'BattleManager.getChargedATBBattler = function()' but i cant get the proper syntax down.
Moved to: Plugin Support

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-atb-how-to-store-previous-action-of-a-actor.139051/