forked from External/mage
Implemented Miscast
This commit is contained in:
parent
578f481a36
commit
feefd0ae5f
2 changed files with 35 additions and 0 deletions
34
Mage.Sets/src/mage/cards/m/Miscast.java
Normal file
34
Mage.Sets/src/mage/cards/m/Miscast.java
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.CounterUnlessPaysEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.TargetSpell;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class Miscast extends CardImpl {
|
||||
|
||||
public Miscast(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U}");
|
||||
|
||||
// Counter target instant or sorcery spell unless its controller pays {3}.
|
||||
this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new GenericManaCost(3)));
|
||||
this.getSpellAbility().addTarget(new TargetSpell(StaticFilters.FILTER_SPELL_INSTANT_OR_SORCERY));
|
||||
}
|
||||
|
||||
private Miscast(final Miscast card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Miscast copy() {
|
||||
return new Miscast(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -94,6 +94,7 @@ public final class CoreSet2021 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Massacre Wurm", 114, Rarity.MYTHIC, mage.cards.m.MassacreWurm.class));
|
||||
cards.add(new SetCardInfo("Mazemind Tome", 232, Rarity.RARE, mage.cards.m.MazemindTome.class));
|
||||
cards.add(new SetCardInfo("Meteorite", 233, Rarity.UNCOMMON, mage.cards.m.Meteorite.class));
|
||||
cards.add(new SetCardInfo("Miscast", 57, Rarity.UNCOMMON, mage.cards.m.Miscast.class));
|
||||
cards.add(new SetCardInfo("Mountain", 312, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Mystic Skyfish", 326, Rarity.COMMON, mage.cards.m.MysticSkyfish.class));
|
||||
cards.add(new SetCardInfo("Necromentia", 116, Rarity.RARE, mage.cards.n.Necromentia.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue