Yes, I think the dispel magic/shatter trick should work. Normally, though, it isn't a very sound tactical choice... Unless, perhaps, that same spellcaster has a bunch of gargoyles or other creatures with damage resistance backing him up. "He's really making mincemeat out of my pet gargoyles with...