There's nothing at all in there that should take HP away from the user. I suspect there is something else going on - other skills, states, scripts.
Can you create this skill in a brand new project with NO other changes (no scripts, no other new skills) and see if the same thing happens?
It must be one of the scripts that I'm using. This new project has it running completely fine. I don't know what script it is though, so I'll just end up scrapping the ability probably. Thanks for the help anyways.
How many scripts are you using? The next step is to disable all of your scripts, save, and play to ensure it works as expected. Then enable the scripts again, one by one, saving and testing after each one. As soon as the issue appears, it means the last script you enabled is causing the problem. If you have a lot of scripts, enable them in blocks of 5 or 6 rather than one at a time. When the issue happens, disable all of the last block and re-enable them one by one to identify the troublemaker. Or target any related to skills/battle/damage first, as they're the most likely candidates.
Don't have to scrap the idea just because a script is causing havoc. It just takes a little bit of work to figure out which one it is, then decide what to do about it.
Did the targets have some kind of reflect state applied, where any damage would reflect back to the user of the skill?
Okay, well that's an idea I didn't think of. Thanks. I have 17 scripts currently. And as for the reflect states, I was testing it in a boss battle that had those kinds of states, but then I tested in a different troop, and the same thing happebed, so it wouldn't be that.
What happens if you go to your project where the issue happens, create a new map, create a new troop where none of those states can be applied? When you fight that troop, does the same thing happen?
It could be settings on your enemies, even if they don't have a state applied.