I believe it's using harmonics between the heads to block the spells, or something like that. Might even be something like each head has a magic they repel, but I think it's the sound because each of the barriers is accompanied by a screech-like sound effect.