mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
[BRO] Implemented Ashnod's Harvester
This commit is contained in:
parent
c6b4cfea45
commit
ab0505b1b6
2 changed files with 47 additions and 0 deletions
46
Mage.Sets/src/mage/cards/a/AshnodsHarvester.java
Normal file
46
Mage.Sets/src/mage/cards/a/AshnodsHarvester.java
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
package mage.cards.a;
|
||||||
|
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.abilities.Ability;
|
||||||
|
import mage.abilities.common.AttacksTriggeredAbility;
|
||||||
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||||
|
import mage.abilities.effects.common.ExileTargetEffect;
|
||||||
|
import mage.abilities.keyword.UnearthAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.target.common.TargetCardInGraveyard;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class AshnodsHarvester extends CardImpl {
|
||||||
|
|
||||||
|
public AshnodsHarvester(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{2}");
|
||||||
|
|
||||||
|
this.subtype.add(SubType.CONSTRUCT);
|
||||||
|
this.power = new MageInt(3);
|
||||||
|
this.toughness = new MageInt(1);
|
||||||
|
|
||||||
|
// Whenever Ashnod's Harvester attacks, exile target card from a graveyard.
|
||||||
|
Ability ability = new AttacksTriggeredAbility(new ExileTargetEffect());
|
||||||
|
ability.addTarget(new TargetCardInGraveyard());
|
||||||
|
this.addAbility(ability);
|
||||||
|
|
||||||
|
// Unearth {1}{B}
|
||||||
|
this.addAbility(new UnearthAbility(new ManaCostsImpl<>("{1}{B}")));
|
||||||
|
}
|
||||||
|
|
||||||
|
private AshnodsHarvester(final AshnodsHarvester card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AshnodsHarvester copy() {
|
||||||
|
return new AshnodsHarvester(this);
|
||||||
|
}
|
||||||
|
}
|
|
@ -20,6 +20,7 @@ public final class TheBrothersWar extends ExpansionSet {
|
||||||
this.blockName = "The Brothers' War";
|
this.blockName = "The Brothers' War";
|
||||||
this.hasBoosters = false; // temporary
|
this.hasBoosters = false; // temporary
|
||||||
|
|
||||||
|
cards.add(new SetCardInfo("Ashnod's Harvester", 117, Rarity.UNCOMMON, mage.cards.a.AshnodsHarvester.class));
|
||||||
cards.add(new SetCardInfo("Battlefield Forge", 257, Rarity.RARE, mage.cards.b.BattlefieldForge.class));
|
cards.add(new SetCardInfo("Battlefield Forge", 257, Rarity.RARE, mage.cards.b.BattlefieldForge.class));
|
||||||
cards.add(new SetCardInfo("Brushland", 259, Rarity.RARE, mage.cards.b.Brushland.class));
|
cards.add(new SetCardInfo("Brushland", 259, Rarity.RARE, mage.cards.b.Brushland.class));
|
||||||
cards.add(new SetCardInfo("Forest", 286, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS));
|
cards.add(new SetCardInfo("Forest", 286, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS));
|
||||||
|
|
Loading…
Reference in a new issue