mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
[MIC] Implemented Visions of Duplicity
This commit is contained in:
parent
645779376f
commit
9e864facd3
2 changed files with 48 additions and 0 deletions
47
Mage.Sets/src/mage/cards/v/VisionsOfDuplicity.java
Normal file
47
Mage.Sets/src/mage/cards/v/VisionsOfDuplicity.java
Normal file
|
@ -0,0 +1,47 @@
|
|||
package mage.cards.v;
|
||||
|
||||
import mage.abilities.costs.costadjusters.CommanderManaValueAdjuster;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.continuous.ExchangeControlTargetEffect;
|
||||
import mage.abilities.keyword.FlashbackAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class VisionsOfDuplicity extends CardImpl {
|
||||
|
||||
public VisionsOfDuplicity(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{U}");
|
||||
|
||||
// Exchange control of two target creatures you don't control.
|
||||
this.getSpellAbility().addEffect(new ExchangeControlTargetEffect(
|
||||
Duration.EndOfGame, "exchange control of two target creatures you don't control"
|
||||
));
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(
|
||||
2, StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL
|
||||
));
|
||||
|
||||
// Flashback {8}{U}{U}. This spell costs {X} less to cast this way, where X is the greatest mana value of a commander you own on the battlefield or in the command zone.
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{8}{U}{U}"))
|
||||
.setAbilityName("This spell costs {X} less to cast this way, where X is the greatest mana value " +
|
||||
"of a commander you own on the battlefield or in the command zone.")
|
||||
.setCostAdjuster(CommanderManaValueAdjuster.instance));
|
||||
}
|
||||
|
||||
private VisionsOfDuplicity(final VisionsOfDuplicity card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VisionsOfDuplicity copy() {
|
||||
return new VisionsOfDuplicity(this);
|
||||
}
|
||||
}
|
|
@ -137,6 +137,7 @@ public final class MidnightHuntCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Undead Augur", 130, Rarity.UNCOMMON, mage.cards.u.UndeadAugur.class));
|
||||
cards.add(new SetCardInfo("Verdurous Gearhulk", 145, Rarity.MYTHIC, mage.cards.v.VerdurousGearhulk.class));
|
||||
cards.add(new SetCardInfo("Victory's Envoy", 96, Rarity.RARE, mage.cards.v.VictorysEnvoy.class));
|
||||
cards.add(new SetCardInfo("Visions of Duplicity", 33, Rarity.RARE, mage.cards.v.VisionsOfDuplicity.class));
|
||||
cards.add(new SetCardInfo("Visions of Glory", 32, Rarity.RARE, mage.cards.v.VisionsOfGlory.class));
|
||||
cards.add(new SetCardInfo("Wild Beastmaster", 146, Rarity.RARE, mage.cards.w.WildBeastmaster.class));
|
||||
cards.add(new SetCardInfo("Wilhelt, the Rotcleaver", 2, Rarity.MYTHIC, mage.cards.w.WilheltTheRotcleaver.class));
|
||||
|
|
Loading…
Reference in a new issue