GetLearnablePriestSpells: filter out spells from other classes

iwd2 doesn't set classmask, so we need an extra check
fixes clerics getting druid spells and similar