You're the guy killing your party members but I'm wrong. There are multiple ways to prevent this from happening, try some of them. Is it really that hard to separate your group so they don't run to each other? Click to turn based mode after battle, you know when the battle is going to end. Maybe just position your team better before using these types of spells.