Enemy Element Absorb?

Greetings everyone,

I'm trying to make it so that certain types of elemental damage heal the enemy instead of damaging or dealing no damage to it, i thought i could do it with negative percentages but the engine doesn't allow that.

For example, I want my Fire Elemental to get healed by attacks with the fire element, how would i go about that?

Thanks in advance!
Here you go: Yanfly's Element Absorb

I've moved this thread to Script Requests since it's something that can only be (conveniently) solved using Scripts.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-element-absorb.113808/