I think i got this right, but I'd like to make a sanity check.
Board & Card Games Stack Exchange is a question and answer site for people who like playing board games, designing board games or modifying the rules of existing board games. It's 100% free, no registration required.
Here's how it works:
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
You are absolutely correct. When a "Whenever you cast" trigger is triggered, the ability will go on the stack above the spell that caused it, meaning it will be resolved first.
Here's the sequence of play.