fn reference_mask( target: ImplicitTargetSemantic, locations: LocationState, ) -> SpellCastTargetFlags