diff --git a/Mage.Sets/src/mage/cards/a/AdaptiveGemguard.java b/Mage.Sets/src/mage/cards/a/AdaptiveGemguard.java new file mode 100644 index 00000000000..e052e2ee914 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AdaptiveGemguard.java @@ -0,0 +1,55 @@ +package mage.cards.a; + +import mage.MageInt; +import mage.abilities.common.ActivateAsSorceryActivatedAbility; +import mage.abilities.costs.common.TapTargetCost; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.counters.CounterType; +import mage.filter.common.FilterControlledPermanent; +import mage.filter.predicate.Predicates; +import mage.filter.predicate.permanent.TappedPredicate; +import mage.target.common.TargetControlledPermanent; + +import java.util.UUID; + +/** + * @author xenohedron + */ +public final class AdaptiveGemguard extends CardImpl { + + private static final FilterControlledPermanent filter = new FilterControlledPermanent("untapped artifacts and/or creatures you control"); + + static { + filter.add(TappedPredicate.UNTAPPED); + filter.add(Predicates.or( + CardType.ARTIFACT.getPredicate(), + CardType.CREATURE.getPredicate() + )); + } + + public AdaptiveGemguard(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{3}{W}"); + + this.subtype.add(SubType.GNOME); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // Tap two untapped artifacts and/or creatures you control: Put a +1/+1 counter on Adaptive Gemguard. Activate only as a sorcery. + this.addAbility(new ActivateAsSorceryActivatedAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), + new TapTargetCost(new TargetControlledPermanent(2, filter)))); + + } + + private AdaptiveGemguard(final AdaptiveGemguard card) { + super(card); + } + + @Override + public AdaptiveGemguard copy() { + return new AdaptiveGemguard(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java index 7b4b5107552..49359ac8de6 100644 --- a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java +++ b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java @@ -26,6 +26,7 @@ public final class TheLostCavernsOfIxalan extends ExpansionSet { cards.add(new SetCardInfo("Aclazotz, Deepest Betrayal", 88, Rarity.MYTHIC, mage.cards.a.AclazotzDeepestBetrayal.class)); cards.add(new SetCardInfo("Acolyte of Aclazotz", 89, Rarity.COMMON, mage.cards.a.AcolyteOfAclazotz.class)); cards.add(new SetCardInfo("Acrobatic Leap", 2, Rarity.COMMON, mage.cards.a.AcrobaticLeap.class)); + cards.add(new SetCardInfo("Adaptive Gemguard", 3, Rarity.COMMON, mage.cards.a.AdaptiveGemguard.class)); cards.add(new SetCardInfo("Akal Pakal, First Among Equals", 44, Rarity.RARE, mage.cards.a.AkalPakalFirstAmongEquals.class)); cards.add(new SetCardInfo("Akawalli, the Seething Tower", 220, Rarity.UNCOMMON, mage.cards.a.AkawalliTheSeethingTower.class)); cards.add(new SetCardInfo("Amalia Benavides Aguirre", 221, Rarity.RARE, mage.cards.a.AmaliaBenavidesAguirre.class));