Page 1 of 1

Discarding specific cards

PostPosted: 01 Mar 2015, 19:50
by PalladiaMors
Hey guys, I've been trying to figure out for a while how to discard specific cards or card types in groovy form. The ability is found in script form in cards such as Fauna Shaman and Survival of the Fittest, but I can't find any cards in groovy form that do it. Unfortunately, the events section in the wiki isn't ready yet, so this isn't documented there. I believe it probably uses the DiscardCardEvent, but I'm not sure how to structure it in this case.

I think this could lead to a decent number of cards (Korlash, Heir to Blackblade, Hidden Horror). Appreciate any help, thanks!

Re: Discarding specific cards

PostPosted: 02 Mar 2015, 00:38
by melvin
check out MagicDiscardChosenEvent, eg:
Code: Select all
  new MagicDiscardChosenEvent(source, MagicTargetChoice.CREATURE_CARD_FROM_HAND)
Update: Fixed typo. Should be MagicDiscardChosenEvent instead of MagicDiscardChosenCardEvent

Re: Discarding specific cards

PostPosted: 02 Mar 2015, 01:51
by PalladiaMors
I'm getting "unable to resolve class MagicDiscardChosenCardEvent". Maybe I'm doing something wrong?

Re: Discarding specific cards

PostPosted: 02 Mar 2015, 02:16
by melvin
My bad, typo in the earlier post. Should be MagicDiscardChosenEvent.