mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
[DMU] Implemented Academy Wall
This commit is contained in:
parent
7831fb3683
commit
c7ec88a8cf
2 changed files with 47 additions and 0 deletions
46
Mage.Sets/src/mage/cards/a/AcademyWall.java
Normal file
46
Mage.Sets/src/mage/cards/a/AcademyWall.java
Normal 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);
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue