death bat?

This bat casts Necrosis every time you cast another spell, but if you cast a spell on your party, like a buff, the Death Bat casts Necrosis on your own party. Intended?