They can heal from pretty bad injuries. If they eat on their own, they stand a pretty good chance, as long as they don't get any infections. I'd apply some antibiotic ointment and/or feed them some antibiotics and make sure to keep them warm. If they are pecking at each others wounds, separate them. Make sure they get enough vitamins, protein and minerals in their feed so they have something to heal their wounds with.
On the 'standing still right next to the wire'-thing, it might actually be even worse than that. I remember a post where someone had set up surveillance to see how predators got to their birds - and saw that the quail even walked over to the fence to check out the raccoon!
They could also have been scalped from boinking into the top of the cage in panic when the raccoon got hold of the first one.