If you want a suggestion, that code was just a quick search & replace from me, if you want to make it easily modifiable you'd define the spells to be filtered only once in the root (or an <include>). Also to reduce the size you could have only have one instance of the filtering code and call it from each of the pages (passing the number), but that isn't really necessary.
|