Page 1 of 1

Ability_Activated and custom input

PostPosted: 14 Feb 2011, 18:36
by slapshot5
Hi all,

Is it possible to use custom input for targeting using Ability_Activated?

I'm thinking Brass Squire. It's pretty easy to implement.
Code: Select all
Ability_Cost abCost = new Ability_Cost("T", cardName, true);
Ability_Activated ab = new Ability_Activated(card, abCost, ???);
What about the ???? If I use null, I can't use setBeforePayMana, and if I use Target, I'm limited to what that can provide.

Can I do custom input for targeting with a tap ability?

-slapshot5

Re: Ability_Activated and custom input

PostPosted: 14 Feb 2011, 18:56
by friarsol
There isn't really a custom input available for Ability_Activated.

However, I think this is the cleanest way to do it.

Write an Ability_Activated and a Ability_Sub with it. The Ability_Activated would target an Equipment you control. The Ability_Sub would target a Creature you control. The parent would resolve the child. The child would check if both targets are still legal, then attach the parent's target to its target.

Re: Ability_Activated and custom input

PostPosted: 14 Feb 2011, 19:30
by slapshot5
Thanks. I'll give it a try.

-slapshot5