[ECL] Implement Auntie's Sentence (#14199)

This commit is contained in:
Muz 2026-01-09 15:53:29 -06:00 committed by GitHub
parent 7bf97179c8
commit 8dd432ac3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,51 @@
package mage.cards.a;
import java.util.UUID;
import mage.abilities.Mode;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.effects.common.discard.DiscardCardYouChooseTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.FilterCard;
import mage.filter.common.FilterPermanentCard;
import mage.filter.predicate.Predicates;
import mage.target.common.TargetCreaturePermanent;
import mage.target.common.TargetOpponent;
/**
*
* @author muz
*/
public final class AuntiesSentence extends CardImpl {
private static final FilterCard filter = new FilterPermanentCard("a nonland permanent card");
static {
filter.add(Predicates.not(CardType.LAND.getPredicate()));
}
public AuntiesSentence(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{B}");
// Choose one --
// * Target opponent reveals their hand. You choose a nonland permanent card from it. That player discards that card.
this.getSpellAbility().addTarget(new TargetOpponent());
this.getSpellAbility().addEffect(new DiscardCardYouChooseTargetEffect(filter));
// * Target creature gets -2/-2 until end of turn.
Mode mode = new Mode(new BoostTargetEffect(-2, -2));
mode.addTarget(new TargetCreaturePermanent());
this.getSpellAbility().addMode(mode);
}
private AuntiesSentence(final AuntiesSentence card) {
super(card);
}
@Override
public AuntiesSentence copy() {
return new AuntiesSentence(this);
}
}

View file

@ -31,6 +31,7 @@ public final class LorwynEclipsed extends ExpansionSet {
cards.add(new SetCardInfo("Ashling, Rekindled", 124, Rarity.RARE, mage.cards.a.AshlingRekindled.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Ashling, Rekindled", 290, Rarity.RARE, mage.cards.a.AshlingRekindled.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Assert Perfection", 164, Rarity.COMMON, mage.cards.a.AssertPerfection.class));
cards.add(new SetCardInfo("Auntie's Sentence", 85, Rarity.COMMON, mage.cards.a.AuntiesSentence.class));
cards.add(new SetCardInfo("Aurora Awakener", 165, Rarity.MYTHIC, mage.cards.a.AuroraAwakener.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Aurora Awakener", 323, Rarity.MYTHIC, mage.cards.a.AuroraAwakener.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Barbed Bloodletter", 86, Rarity.COMMON, mage.cards.b.BarbedBloodletter.class));