[c12643] Correct logic when setting SPELL_FLAG_REDIRECTED