diff --git a/Mage.Sets/src/mage/cards/a/AcademyWall.java b/Mage.Sets/src/mage/cards/a/AcademyWall.java new file mode 100644 index 0000000000..351a193527 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AcademyWall.java @@ -0,0 +1,46 @@ +package mage.cards.a; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.effects.common.DrawDiscardControllerEffect; +import mage.constants.SubType; +import mage.abilities.keyword.DefenderAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; + +/** + * + * @author weirddan455 + */ +public final class AcademyWall extends CardImpl { + + public AcademyWall(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}"); + + this.subtype.add(SubType.WALL); + this.power = new MageInt(0); + this.toughness = new MageInt(5); + + // Defender + this.addAbility(DefenderAbility.getInstance()); + + // Whenever you cast an instant or sorcery spell, you may draw a card. If you do, discard a card. This ability triggers only once each turn. + this.addAbility(new SpellCastControllerTriggeredAbility( + new DrawDiscardControllerEffect(true), + StaticFilters.FILTER_SPELL_AN_INSTANT_OR_SORCERY, + false + ).setTriggersOnce(true)); + } + + private AcademyWall(final AcademyWall card) { + super(card); + } + + @Override + public AcademyWall copy() { + return new AcademyWall(this); + } +} diff --git a/Mage.Sets/src/mage/sets/DominariaUnited.java b/Mage.Sets/src/mage/sets/DominariaUnited.java index 68ba905d7f..6ed2594e2b 100644 --- a/Mage.Sets/src/mage/sets/DominariaUnited.java +++ b/Mage.Sets/src/mage/sets/DominariaUnited.java @@ -32,6 +32,7 @@ public final class DominariaUnited extends ExpansionSet { this.ratioBoosterMythic = 7; this.maxCardNumberInBooster = 281; + cards.add(new SetCardInfo("Academy Wall", 41, Rarity.COMMON, mage.cards.a.AcademyWall.class)); cards.add(new SetCardInfo("Adarkar Wastes", 243, Rarity.RARE, mage.cards.a.AdarkarWastes.class)); cards.add(new SetCardInfo("Ajani, Sleeper Agent", 192, Rarity.MYTHIC, mage.cards.a.AjaniSleeperAgent.class)); cards.add(new SetCardInfo("Archangel of Wrath", 3, Rarity.RARE, mage.cards.a.ArchangelOfWrath.class));