mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Implemented Deflecting Swat
This commit is contained in:
parent
a9af8d6120
commit
be8a511b72
2 changed files with 38 additions and 0 deletions
37
Mage.Sets/src/mage/cards/d/DeflectingSwat.java
Normal file
37
Mage.Sets/src/mage/cards/d/DeflectingSwat.java
Normal file
|
@ -0,0 +1,37 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.abilities.condition.common.ControlACommanderCondition;
|
||||
import mage.abilities.costs.AlternativeCostSourceAbility;
|
||||
import mage.abilities.effects.common.ChooseNewTargetsTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.TargetStackObject;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class DeflectingSwat extends CardImpl {
|
||||
|
||||
public DeflectingSwat(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{R}");
|
||||
|
||||
// If you control a commander, you may cast this spell without paying its mana cost.
|
||||
this.addAbility(new AlternativeCostSourceAbility(null, ControlACommanderCondition.instance));
|
||||
|
||||
// You may chose new targets for target spell or ability.
|
||||
this.getSpellAbility().addTarget(new TargetStackObject());
|
||||
this.getSpellAbility().addEffect(new ChooseNewTargetsTargetEffect());
|
||||
}
|
||||
|
||||
private DeflectingSwat(final DeflectingSwat card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeflectingSwat copy() {
|
||||
return new DeflectingSwat(this);
|
||||
}
|
||||
}
|
|
@ -35,6 +35,7 @@ public final class Commander2020Edition extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Curious Herd", 59, Rarity.RARE, mage.cards.c.CuriousHerd.class));
|
||||
cards.add(new SetCardInfo("Daring Fiendbonder", 41, Rarity.RARE, mage.cards.d.DaringFiendbonder.class));
|
||||
cards.add(new SetCardInfo("Deadly Tempest", 131, Rarity.RARE, mage.cards.d.DeadlyTempest.class));
|
||||
cards.add(new SetCardInfo("Deflecting Swat", 50, Rarity.RARE, mage.cards.d.DeflectingSwat.class));
|
||||
cards.add(new SetCardInfo("Dismantling Wave", 25, Rarity.RARE, mage.cards.d.DismantlingWave.class));
|
||||
cards.add(new SetCardInfo("Eternal Dragon", 88, Rarity.RARE, mage.cards.e.EternalDragon.class));
|
||||
cards.add(new SetCardInfo("Flawless Maneuver", 26, Rarity.RARE, mage.cards.f.FlawlessManeuver.class));
|
||||
|
|
Loading…
Reference in a new issue