Doesn't Cleric Agressive just cast any spell randomly from your memorized spell list? Perhaps this is why that happened, although it wouldn't make sense since there would be a chance of casting a heal spell on an enemy. So I'd take it that it's a bug, and, like already said, don't use the scripts