Effect that triggers on evasion/miss when under specific state

Basically what's in the title. I have a positive state that, among others, increases EVA. I would like that when an actor is under this state, every attack he dodges (and/or misses him; I'll take that too) restores a portion of his MP.
I'm using Yanfly plugins.

I actually think I know how I would achieve it via damage formula (check state, check miss, gain mp?) but I would have to add this to every single enemy skill which is obviously less than ideal and probably silly.
No, this can't be achieved by damage formula, because the damage formula is only executed on hit.
It can only be achieved by plugin

Moved to: Plugin Request

Original thread: https://forums.rpgmakerweb.com/threads/effect-that-triggers-on-evasion-miss-when-under-specific-state.74898/