mirror of
https://github.com/correl/mage.git
synced 2024-11-28 11:09:54 +00:00
[MH2] Implemented Foundation Breaker
This commit is contained in:
parent
4b0036d6a7
commit
47fb7cb6df
3 changed files with 48 additions and 1 deletions
46
Mage.Sets/src/mage/cards/f/FoundationBreaker.java
Normal file
46
Mage.Sets/src/mage/cards/f/FoundationBreaker.java
Normal file
|
@ -0,0 +1,46 @@
|
|||
package mage.cards.f;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.abilities.keyword.EvokeAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class FoundationBreaker extends CardImpl {
|
||||
|
||||
public FoundationBreaker(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}");
|
||||
|
||||
this.subtype.add(SubType.ELEMENTAL);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Foundation Breaker enters the battlefield, you may destroy target artifact or enchantment.
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), true);
|
||||
ability.addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT));
|
||||
this.addAbility(ability);
|
||||
|
||||
// Evoke {1}{G}
|
||||
this.addAbility(new EvokeAbility("{1}{G}"));
|
||||
}
|
||||
|
||||
private FoundationBreaker(final FoundationBreaker card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FoundationBreaker copy() {
|
||||
return new FoundationBreaker(this);
|
||||
}
|
||||
}
|
|
@ -79,6 +79,7 @@ public final class ModernHorizons2 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Flametongue Yearling", 125, Rarity.UNCOMMON, mage.cards.f.FlametongueYearling.class));
|
||||
cards.add(new SetCardInfo("Flay Essence", 85, Rarity.UNCOMMON, mage.cards.f.FlayEssence.class));
|
||||
cards.add(new SetCardInfo("Forest", 489, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Foundation Breaker", 160, Rarity.UNCOMMON, mage.cards.f.FoundationBreaker.class));
|
||||
cards.add(new SetCardInfo("Fractured Sanity", 44, Rarity.RARE, mage.cards.f.FracturedSanity.class));
|
||||
cards.add(new SetCardInfo("Gaea's Will", 162, Rarity.RARE, mage.cards.g.GaeasWill.class));
|
||||
cards.add(new SetCardInfo("General Ferrous Rokiric", 198, Rarity.RARE, mage.cards.g.GeneralFerrousRokiric.class));
|
||||
|
|
|
@ -31,7 +31,7 @@ Enchant|type|
|
|||
Encore|cost|
|
||||
Entwine|manaString|
|
||||
Eternalize|cost, card|
|
||||
Evoke|card, manaString|
|
||||
Evoke|manaString|
|
||||
Evolve|new|
|
||||
Exalted|new|
|
||||
Exploit|new|
|
||||
|
|
Loading…
Reference in a new issue