mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
[STX] Implemented Overgrown Arch
This commit is contained in:
parent
3f80d894bf
commit
efd7f9e659
2 changed files with 53 additions and 0 deletions
52
Mage.Sets/src/mage/cards/o/OvergrownArch.java
Normal file
52
Mage.Sets/src/mage/cards/o/OvergrownArch.java
Normal file
|
@ -0,0 +1,52 @@
|
|||
package mage.cards.o;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.SacrificeSourceCost;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.abilities.effects.common.LearnEffect;
|
||||
import mage.abilities.keyword.DefenderAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class OvergrownArch extends CardImpl {
|
||||
|
||||
public OvergrownArch(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}");
|
||||
|
||||
this.subtype.add(SubType.PLANT);
|
||||
this.subtype.add(SubType.WALL);
|
||||
this.power = new MageInt(0);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Defender
|
||||
this.addAbility(DefenderAbility.getInstance());
|
||||
|
||||
// {T}: You gain 1 life.
|
||||
this.addAbility(new SimpleActivatedAbility(new GainLifeEffect(1), new TapSourceCost()));
|
||||
|
||||
// {2}, Sacrifice Overgrown Arch: Learn.
|
||||
Ability ability = new SimpleActivatedAbility(new LearnEffect(), new GenericManaCost(2));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private OvergrownArch(final OvergrownArch card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OvergrownArch copy() {
|
||||
return new OvergrownArch(this);
|
||||
}
|
||||
}
|
|
@ -114,6 +114,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Necrotic Fumes", 78, Rarity.UNCOMMON, mage.cards.n.NecroticFumes.class));
|
||||
cards.add(new SetCardInfo("Novice Dissector", 79, Rarity.COMMON, mage.cards.n.NoviceDissector.class));
|
||||
cards.add(new SetCardInfo("Oggyar Battle-Seer", 209, Rarity.COMMON, mage.cards.o.OggyarBattleSeer.class));
|
||||
cards.add(new SetCardInfo("Overgrown Arch", 139, Rarity.UNCOMMON, mage.cards.o.OvergrownArch.class));
|
||||
cards.add(new SetCardInfo("Owlin Shieldmage", 210, Rarity.COMMON, mage.cards.o.OwlinShieldmage.class));
|
||||
cards.add(new SetCardInfo("Pest Summoning", 211, Rarity.COMMON, mage.cards.p.PestSummoning.class));
|
||||
cards.add(new SetCardInfo("Pilgrim of the Ages", 22, Rarity.COMMON, mage.cards.p.PilgrimOfTheAges.class));
|
||||
|
|
Loading…
Reference in a new issue