Gilder Bairn: added filter so player can't accidentally pick a card without counter(s) on it.

This commit is contained in:
MTGfan 2016-12-27 02:33:55 -05:00
parent 5cc2a4f204
commit 949784af0d

View file

@ -40,6 +40,8 @@ import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.Zone;
import mage.counters.Counter;
import mage.filter.FilterPermanent;
import mage.filter.predicate.permanent.CounterAnyPredicate;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.target.TargetPermanent;
@ -49,6 +51,12 @@ import mage.target.TargetPermanent;
* @author LevelX2
*/
public class GilderBairn extends CardImpl {
private static final FilterPermanent filter = new FilterPermanent();
static {
filter.add(new CounterAnyPredicate());
}
public GilderBairn(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{G/U}{G/U}");
@ -60,7 +68,7 @@ public class GilderBairn extends CardImpl {
// {2}{GU}, {untap}: For each counter on target permanent, put another of those counters on that permanent.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GilderBairnEffect(), new ManaCostsImpl("{2}{G/U}"));
ability.addCost(new UntapSourceCost());
ability.addTarget(new TargetPermanent());
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);
}