The way anti-magic sphere worked for my party is that the part of the creature that was in the sphere didn't have the magic effects, but the part of the creature that wasn't did. How optimized would these 4 level 19 characters be? At high optimization levels they would probably trash the dragon.