The city was saved by a miracle thanks to the elf. It was saved because he killed the Heroist at the end, and it was a miracle because before that, he wiped out half the city, haha.
I calculated that the elf killed four Mirks, which is twice as many as all the negative creatures combined, who only managed to kill the Master and the Morning Star from the city's defenders. A real maniac!