[VOW] Implemented Witness the Future

This commit is contained in:
Daniel Bomar 2021-11-08 08:38:29 -06:00
parent 1a28d43461
commit a2334c3f9a
No known key found for this signature in database
GPG key ID: C86C8658F4023918
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,44 @@
package mage.cards.w;
import java.util.UUID;
import mage.abilities.dynamicvalue.common.StaticValue;
import mage.abilities.effects.common.LookLibraryAndPickControllerEffect;
import mage.abilities.effects.common.TargetPlayerShufflesTargetCardsEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Zone;
import mage.filter.StaticFilters;
import mage.target.TargetPlayer;
import mage.target.common.TargetCardInTargetPlayersGraveyard;
/**
*
* @author weirddan455
*/
public final class WitnessTheFuture extends CardImpl {
public WitnessTheFuture(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{U}");
// Target player shuffles up to four target cards from their graveyard into their library.
// You look at the top four cards of your library, then put one of those cards into your hand and the rest on the bottom of your library in a random order.
this.getSpellAbility().addTarget(new TargetPlayer());
this.getSpellAbility().addTarget(new TargetCardInTargetPlayersGraveyard(4));
this.getSpellAbility().addEffect(new TargetPlayerShufflesTargetCardsEffect());
this.getSpellAbility().addEffect(new LookLibraryAndPickControllerEffect(
StaticValue.get(4), false, StaticValue.get(1), StaticFilters.FILTER_CARD,
Zone.LIBRARY, false, false, false, Zone.HAND, false, false, false
).setBackInRandomOrder(true));
}
private WitnessTheFuture(final WitnessTheFuture card) {
super(card);
}
@Override
public WitnessTheFuture copy() {
return new WitnessTheFuture(this);
}
}

View file

@ -309,6 +309,7 @@ public final class InnistradCrimsonVow extends ExpansionSet {
cards.add(new SetCardInfo("Whispering Wizard", 88, Rarity.UNCOMMON, mage.cards.w.WhisperingWizard.class));
cards.add(new SetCardInfo("Winged Portent", 89, Rarity.RARE, mage.cards.w.WingedPortent.class));
cards.add(new SetCardInfo("Witch's Web", 227, Rarity.COMMON, mage.cards.w.WitchsWeb.class));
cards.add(new SetCardInfo("Witness the Future", 90, Rarity.UNCOMMON, mage.cards.w.WitnessTheFuture.class));
cards.add(new SetCardInfo("Wolf Strike", 228, Rarity.COMMON, mage.cards.w.WolfStrike.class));
cards.add(new SetCardInfo("Wolfkin Outcast", 229, Rarity.UNCOMMON, mage.cards.w.WolfkinOutcast.class));
cards.add(new SetCardInfo("Wrathful Jailbreaker", 184, Rarity.COMMON, mage.cards.w.WrathfulJailbreaker.class));