fn collect_trigger_ids( spell_ids: &[i32], spell_rows: &[SpellRow], item_rows: &[ItemRow], ) -> Vec<i32>