mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
[MH2] Implemented Mine Collapse
This commit is contained in:
parent
4c5c4e4d3f
commit
29e85cd4b9
2 changed files with 50 additions and 0 deletions
49
Mage.Sets/src/mage/cards/m/MineCollapse.java
Normal file
49
Mage.Sets/src/mage/cards/m/MineCollapse.java
Normal file
|
@ -0,0 +1,49 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.condition.common.MyTurnCondition;
|
||||
import mage.abilities.costs.AlternativeCostSourceAbility;
|
||||
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.hint.common.MyTurnHint;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.target.common.TargetControlledPermanent;
|
||||
import mage.target.common.TargetCreatureOrPlaneswalker;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author weirddan455
|
||||
*/
|
||||
public final class MineCollapse extends CardImpl {
|
||||
|
||||
private static final FilterControlledPermanent filter = new FilterControlledPermanent(SubType.MOUNTAIN, "a Mountain");
|
||||
|
||||
public MineCollapse(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{R}");
|
||||
|
||||
// If it's your turn, you may sacrifice a Mountain rather than pay this spell's mana cost.
|
||||
this.addAbility(new AlternativeCostSourceAbility(
|
||||
new SacrificeTargetCost(new TargetControlledPermanent(filter)),
|
||||
MyTurnCondition.instance,
|
||||
"If it's your turn, you may sacrifice a Mountain rather than pay this spell's mana cost."
|
||||
).addHint(MyTurnHint.instance));
|
||||
|
||||
// Mine Collapse deals 5 damage to target creature or planeswalker.
|
||||
this.getSpellAbility().addEffect(new DamageTargetEffect(5));
|
||||
this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker());
|
||||
}
|
||||
|
||||
private MineCollapse(final MineCollapse card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MineCollapse copy() {
|
||||
return new MineCollapse(this);
|
||||
}
|
||||
}
|
|
@ -174,6 +174,7 @@ public final class ModernHorizons2 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Master of Death", 205, Rarity.RARE, mage.cards.m.MasterOfDeath.class));
|
||||
cards.add(new SetCardInfo("Mental Journey", 51, Rarity.COMMON, mage.cards.m.MentalJourney.class));
|
||||
cards.add(new SetCardInfo("Millikin", 297, Rarity.UNCOMMON, mage.cards.m.Millikin.class));
|
||||
cards.add(new SetCardInfo("Mine Collapse", 135, Rarity.COMMON, mage.cards.m.MineCollapse.class));
|
||||
cards.add(new SetCardInfo("Mirari's Wake", 291, Rarity.MYTHIC, mage.cards.m.MirarisWake.class));
|
||||
cards.add(new SetCardInfo("Mishra's Factory", 302, Rarity.UNCOMMON, mage.cards.m.MishrasFactory.class));
|
||||
cards.add(new SetCardInfo("Mistvault Bridge", 249, Rarity.COMMON, mage.cards.m.MistvaultBridge.class));
|
||||
|
|
Loading…
Reference in a new issue