[MIC] Implemented Visions of Duplicity

This commit is contained in:
Evan Kranzler 2021-09-16 09:38:04 -04:00
parent 645779376f
commit 9e864facd3
2 changed files with 48 additions and 0 deletions

View 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);
}
}

View file

@ -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));