[LCI] Implement Anim Pakal, Thousandth Moon

This commit is contained in:
Susucre 2023-11-04 17:06:32 +01:00
parent 38940281c8
commit 2fce802775
2 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1,65 @@
package mage.cards.a;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.AttacksWithCreaturesTriggeredAbility;
import mage.abilities.dynamicvalue.common.CountersSourceCount;
import mage.abilities.effects.common.CreateTokenEffect;
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.SuperType;
import mage.counters.CounterType;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.Predicates;
import mage.game.permanent.token.GnomeToken;
import java.util.UUID;
/**
* @author Susucr
*/
public final class AnimPakalThousandthMoon extends CardImpl {
private static final FilterCreaturePermanent filter
= new FilterCreaturePermanent("non-Gnome creatures");
static {
filter.add(Predicates.not(SubType.GNOME.getPredicate()));
}
public AnimPakalThousandthMoon(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}{W}");
this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.SOLDIER);
this.power = new MageInt(1);
this.toughness = new MageInt(2);
// Whenever you attack with one or more non-Gnome creatures, put a +1/+1 counter on Anim Pakal, then create X 1/1 colorless Gnome artifact creature tokens that are tapped and attacking, where X is the number of +1/+1 counters on Anim Pakal.
Ability ability = new AttacksWithCreaturesTriggeredAbility(
new AddCountersSourceEffect(CounterType.P1P1.createInstance()), 1, filter
);
ability.addEffect(
new CreateTokenEffect(
new GnomeToken(),
new CountersSourceCount(CounterType.P1P1),
true, true
).setText(", then create X 1/1 colorless Gnome artifact creature tokens that are tapped and attacking, "
+ "where X is the number of +1/+1 counters on {this}")
);
this.addAbility(ability);
}
private AnimPakalThousandthMoon(final AnimPakalThousandthMoon card) {
super(card);
}
@Override
public AnimPakalThousandthMoon copy() {
return new AnimPakalThousandthMoon(this);
}
}

View file

@ -32,6 +32,7 @@ public final class TheLostCavernsOfIxalan extends ExpansionSet {
cards.add(new SetCardInfo("Amalia Benavides Aguirre", 221, Rarity.RARE, mage.cards.a.AmaliaBenavidesAguirre.class));
cards.add(new SetCardInfo("Ancestors' Aid", 132, Rarity.COMMON, mage.cards.a.AncestorsAid.class));
cards.add(new SetCardInfo("Ancestral Reminiscence", 45, Rarity.COMMON, mage.cards.a.AncestralReminiscence.class));
cards.add(new SetCardInfo("Anim Pakal, Thousandth Moon", 223, Rarity.RARE, mage.cards.a.AnimPakalThousandthMoon.class));
cards.add(new SetCardInfo("Attentive Sunscribe", 4, Rarity.COMMON, mage.cards.a.AttentiveSunscribe.class));
cards.add(new SetCardInfo("Bartolome del Presidio", 224, Rarity.UNCOMMON, mage.cards.b.BartolomeDelPresidio.class));
cards.add(new SetCardInfo("Basking Capybara", 175, Rarity.COMMON, mage.cards.b.BaskingCapybara.class));