fn mode_allows_candidate( local: LocalSpellIdx, spells: &[SpellData], mode: RotationDecisionMode, ) -> bool