[DMU] Implemented Academy Wall

This commit is contained in:
Daniel Bomar 2022-08-25 07:51:20 -05:00
parent 7831fb3683
commit c7ec88a8cf
No known key found for this signature in database
GPG key ID: C86C8658F4023918
2 changed files with 47 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));