implement [EOE] Oreplate Pangolin

This commit is contained in:
Susucre 2025-07-18 17:59:55 +02:00
parent 882737ffc9
commit 02ac039e1f
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,56 @@
package mage.cards.o;
import mage.MageInt;
import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.common.DoIfCostPaid;
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.constants.TargetController;
import mage.counters.CounterType;
import mage.filter.common.FilterArtifactPermanent;
import mage.filter.predicate.mageobject.AnotherPredicate;
import java.util.UUID;
/**
* @author Susucr
*/
public final class OreplatePangolin extends CardImpl {
private static final FilterArtifactPermanent filter = new FilterArtifactPermanent("another artifact");
static {
filter.add(AnotherPredicate.instance);
filter.add(TargetController.YOU.getControllerPredicate());
}
public OreplatePangolin(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{1}{R}");
this.subtype.add(SubType.ROBOT);
this.subtype.add(SubType.PANGOLIN);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// Whenever another artifact you control enters, you may pay {1}. If you do, put a +1/+1 counter on this creature.
this.addAbility(new EntersBattlefieldControlledTriggeredAbility(
new DoIfCostPaid(
new AddCountersSourceEffect(CounterType.P1P1.createInstance()),
new GenericManaCost(1)
), filter)
);
}
private OreplatePangolin(final OreplatePangolin card) {
super(card);
}
@Override
public OreplatePangolin copy() {
return new OreplatePangolin(this);
}
}

View file

@ -198,6 +198,7 @@ public final class EdgeOfEternities extends ExpansionSet {
cards.add(new SetCardInfo("Nova Hellkite", 148, Rarity.RARE, mage.cards.n.NovaHellkite.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Nova Hellkite", 309, Rarity.RARE, mage.cards.n.NovaHellkite.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Nutrient Block", 243, Rarity.COMMON, mage.cards.n.NutrientBlock.class));
cards.add(new SetCardInfo("Oreplate Pangolin", 150, Rarity.COMMON, mage.cards.o.OreplatePangolin.class));
cards.add(new SetCardInfo("Ouroboroid", 201, Rarity.MYTHIC, mage.cards.o.Ouroboroid.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Ouroboroid", 345, Rarity.MYTHIC, mage.cards.o.Ouroboroid.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Pain for All", 151, Rarity.RARE, mage.cards.p.PainForAll.class, NON_FULL_USE_VARIOUS));