I think you should be able to lower the DC of a spell. In that way, you can seem to cast harmful spells against enemies who are actually your allies and in effect, be pulling your punches, no doubt to misdirect some dupe.
I would require the caster to roll a Spellcraft check to pull off such...