If you are using "Revive" that is precisely what it does: The character kills him/ herself to resurrect another with full HP. There's some other technique that makes it inflict damage in him/ herself to attack, could be it too.

Also, check if they are berserked.