Fix spells in xv (#9165).

The code was expecting them to be terminated by SPELL_NO_SPELL; since
they were not, the loop kept going into the spell list that came after
any specific one.