Making Potions While Using Yanfly's Lunatic Damage

I forgot to put tags. This is for VX Ace

Yanfly's Lunatic Damage is a wonderful script that is necessary for making the damage formulas of my player skills.

https://yanflychannel.wordpress.com/rmvxa/battle-scripts/lunatic-damage/

However, I have been trying to make a potion that will heal the player according to this formula:

(1.5 * (a.def + 150)).to_i

Whenever I use it, it does nothing. I believe this has to do with the fact that all damage processing is put through the Lunatic Damage script.

I have no idea how to get this to work, and I would greatly appreciate any help.
Bump.

I really need to figure this out. Having working potions is necessary for me, and I'm at a point where it's very difficult to continue working on my game without the mechanics themselves working. I'd really appreciate any help.
Bump.

I've been trying for days, but I can't figure it out. I really need to fix this, or I might have to scrap my whole project. Please please help if you can.
I feel silly.

I finally figured it out.

Here is what was wrong:

When fighting a powerful enemy, the player would sometimes do negative damage, healing the enemy. To stop this, I told the script to set value to 0 is value < 0 .

This prevented any healing, since healing is always somehow considered a negative value. So instead of applying that to every damage calculation, I made sure only attacks would be set to 0 if negative.

Original thread: https://forums.rpgmakerweb.com/threads/making-potions-while-using-yanflys-lunatic-damage.50216/