[TLA] Implement Platypus-Bear

This commit is contained in:
theelk801 2025-11-03 18:52:34 -05:00
parent 6e0d6dfc36
commit 777bb176bf
3 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,60 @@
package mage.cards.p;
import mage.MageInt;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.condition.Condition;
import mage.abilities.condition.common.CardsInControllerGraveyardCondition;
import mage.abilities.decorator.ConditionalAsThoughEffect;
import mage.abilities.effects.common.MillCardsControllerEffect;
import mage.abilities.effects.common.combat.CanAttackAsThoughItDidntHaveDefenderSourceEffect;
import mage.abilities.hint.ConditionHint;
import mage.abilities.hint.Hint;
import mage.abilities.keyword.DefenderAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.filter.FilterCard;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class PlatypusBear extends CardImpl {
private static final Condition condition = new CardsInControllerGraveyardCondition(1, new FilterCard(SubType.LESSON));
private static final Hint hint = new ConditionHint(condition, "There is a Lesson card in your graveyard");
public PlatypusBear(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G/U}");
this.subtype.add(SubType.PLATYPUS);
this.subtype.add(SubType.BEAR);
this.power = new MageInt(2);
this.toughness = new MageInt(3);
// Defender
this.addAbility(DefenderAbility.getInstance());
// When this creature enters, mill two cards.
this.addAbility(new EntersBattlefieldTriggeredAbility(new MillCardsControllerEffect(2)));
// As long as there is a Lesson card in your graveyard, this creature can attack as though it didn't have defender.
this.addAbility(new SimpleStaticAbility(new ConditionalAsThoughEffect(
new CanAttackAsThoughItDidntHaveDefenderSourceEffect(Duration.WhileOnBattlefield), condition
).setText("as long as there is a Lesson card in your graveyard, " +
"this creature can attack as though it didn't have defender")).addHint(hint));
}
private PlatypusBear(final PlatypusBear card) {
super(card);
}
@Override
public PlatypusBear copy() {
return new PlatypusBear(this);
}
}

View file

@ -164,6 +164,7 @@ public final class AvatarTheLastAirbender extends ExpansionSet {
cards.add(new SetCardInfo("Plains", 292, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS));
cards.add(new SetCardInfo("Planetarium of Wan Shi Tong", 259, Rarity.MYTHIC, mage.cards.p.PlanetariumOfWanShiTong.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Planetarium of Wan Shi Tong", 385, Rarity.MYTHIC, mage.cards.p.PlanetariumOfWanShiTong.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Platypus-Bear", 236, Rarity.COMMON, mage.cards.p.PlatypusBear.class));
cards.add(new SetCardInfo("Pretending Poxbearers", 237, Rarity.COMMON, mage.cards.p.PretendingPoxbearers.class));
cards.add(new SetCardInfo("Rabaroo Troop", 32, Rarity.COMMON, mage.cards.r.RabarooTroop.class));
cards.add(new SetCardInfo("Ran and Shaw", 150, Rarity.RARE, mage.cards.r.RanAndShaw.class, NON_FULL_USE_VARIOUS));

View file

@ -333,6 +333,7 @@ public enum SubType {
PINCHER("Pincher", SubTypeSet.CreatureType),
PIRATE("Pirate", SubTypeSet.CreatureType),
PLANT("Plant", SubTypeSet.CreatureType),
PLATYPUS("Platypus", SubTypeSet.CreatureType),
PORCUPINE("Porcupine", SubTypeSet.CreatureType),
POSSUM("Possum", SubTypeSet.CreatureType),
PRAETOR("Praetor", SubTypeSet.CreatureType),