Shield effect + enhance attacks with absorbed damage

Okay, so I have a thing I want to do, but I’m not sure how

The support character has an ability consisting on making barriers that absorb energy and use it to enhance her attacks and healing, like, she intercepts a fireball and converts the fireball power into healing power

Is there any way to make an ability consisting on a barrier that acts as a shield (take for instance league’s shield, which absorb damage until it disappears) and stores the damage it has taken to improve following attacks? (Example, you cast a shield of 10HP, and if it takes 5HP of damage before disappearing, the next attack will deal 5 extra damage or heal 5 extra hit points)
Yanfly's Absorption Barrier is a customizable plugin to do exactly what you want. It's not free, you have to get at least the $10 battle pack which includes that and others.
I was thinking on getting the whole Yanfly pack, so it might work, but does it do the store damage for later thing?

Original thread: https://forums.rpgmakerweb.com/threads/shield-effect-enhance-attacks-with-absorbed-damage.136032/