mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
Gilder Bairn: added filter so player can't accidentally pick a card without counter(s) on it.
This commit is contained in:
parent
5cc2a4f204
commit
949784af0d
1 changed files with 9 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue