Enumerating Targets

Hi!
I'm trying to implement Ink-Treader Nephilim. I'm having a hard time enumerating all the targets of modal spells like Cryptic Command. What's the interface for getting all the abilities and targets of a spell on the stack? Can spells have multiple SpellAbility's/Effect's?
I hope to be able to contribute a couple other cards to the project, but this one is giving me some trouble.
Thanks!
I'm trying to implement Ink-Treader Nephilim. I'm having a hard time enumerating all the targets of modal spells like Cryptic Command. What's the interface for getting all the abilities and targets of a spell on the stack? Can spells have multiple SpellAbility's/Effect's?
I hope to be able to contribute a couple other cards to the project, but this one is giving me some trouble.
Thanks!