What is this variance based on?

The rest is quite simple. Make the skill so that it only targets one enemy and in the formula add this:

Code:

`$game_party.members.each { |m| if (m.hp == 0); m.hp += (m.mhp * percentage / 100); end; };`

You should change that "percentage" to be the amount of maximum hp you want to restore but since I don't know how you are going to set that percentage I cannot help you more than this.

**IMPORTANT NOTE: **be careful because VX Ace formula box is very small and I don't know if it fits.

**IMPORTANT NOTE 2:** your damage formula goes AFTER that code.