Originally Posted by Vua
Just keep a cantrip that requires concentration and cast it at the end of battle. One time I had party members walk into a spell I had cast and it's never happened again through 6 playthroughs. It's a you problem if it keeps happening. Sorry.

That doesn't work. Combat ends and the spell is still up, possibly from 2 npcs. The group immediately reforms before there is a chance to click on each spellcaster and individually cancel the spells. Frankly it should not have been a problem in the first place. Larian really has no excuse for not fixing this Quality of Life issue. As far as frequency, they almost always get damaged walking into them but rarely die outright. So it's a reall pita when it happens.