text: If you discard a card as a cost to cast a spell or activate an ability, Rielle's triggered ability resolves before that spell or ability but after you've chosen targets for it. If you discard a card while a spell or ability is resolving, that spell or ability finishes resolving before Rielle's triggered ability does.'