fixed some cards which didn't put things on the bottom in a random order

This commit is contained in:
Evan Kranzler 2019-01-20 11:41:49 -05:00
parent 906d5d33b1
commit cf73e4c7d7
5 changed files with 19 additions and 15 deletions

View file

@ -34,7 +34,7 @@ public final class IncubationIncongruity extends SplitCard {
new StaticValue(1), StaticFilters.FILTER_CARD_CREATURE_A, new StaticValue(1), StaticFilters.FILTER_CARD_CREATURE_A,
Zone.LIBRARY, false, true, false, Zone.LIBRARY, false, true, false,
Zone.HAND, false, false, false Zone.HAND, false, false, false
)); ).setBackInRandomOrder(true));
// Incongruity // Incongruity
// Exile target creature. That creature's controller creates a 3/3 green Frog Lizard creature token. // Exile target creature. That creature's controller creates a 3/3 green Frog Lizard creature token.

View file

@ -1,7 +1,6 @@
package mage.cards.m; package mage.cards.m;
import java.util.UUID;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTappedAbility; import mage.abilities.common.EntersBattlefieldTappedAbility;
import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.common.SimpleActivatedAbility;
@ -18,6 +17,8 @@ import mage.constants.CardType;
import mage.constants.Zone; import mage.constants.Zone;
import mage.filter.common.FilterCreatureCard; import mage.filter.common.FilterCreatureCard;
import java.util.UUID;
/** /**
* @author Rystan * @author Rystan
*/ */
@ -34,7 +35,7 @@ public final class MemorialToUnity extends CardImpl {
// {2}{G}, {T}, Sacrifice Memorial to Unity: Look at the top five cards of your library. You may reveal a creature card from among them and put it into your hand. Then put the rest on the bottom of your library in a random order. // {2}{G}, {T}, Sacrifice Memorial to Unity: Look at the top five cards of your library. You may reveal a creature card from among them and put it into your hand. Then put the rest on the bottom of your library in a random order.
Effect effect = new LookLibraryAndPickControllerEffect( Effect effect = new LookLibraryAndPickControllerEffect(
new StaticValue(5), false, new StaticValue(1), new FilterCreatureCard("a creature card"), false, true new StaticValue(5), false, new StaticValue(1), new FilterCreatureCard("a creature card"), false, true
); ).setBackInRandomOrder(true);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{2}{G}")); Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{2}{G}"));
ability.addCost(new TapSourceCost()); ability.addCost(new TapSourceCost());

View file

@ -22,7 +22,7 @@ public final class ShimmerOfPossibility extends CardImpl {
this.getSpellAbility().addEffect(new LookLibraryAndPickControllerEffect( this.getSpellAbility().addEffect(new LookLibraryAndPickControllerEffect(
new StaticValue(4), false, new StaticValue(1), StaticFilters.FILTER_CARD, Zone.LIBRARY, new StaticValue(4), false, new StaticValue(1), StaticFilters.FILTER_CARD, Zone.LIBRARY,
false, false, false, Zone.HAND, false, false, false false, false, false, Zone.HAND, false, false, false
)); ).setBackInRandomOrder(true));
} }
private ShimmerOfPossibility(final ShimmerOfPossibility card) { private ShimmerOfPossibility(final ShimmerOfPossibility card) {

View file

@ -1,6 +1,5 @@
package mage.cards.s; package mage.cards.s;
import java.util.UUID;
import mage.MageInt; import mage.MageInt;
import mage.abilities.common.EntersBattlefieldTriggeredAbility; import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.dynamicvalue.common.StaticValue; import mage.abilities.dynamicvalue.common.StaticValue;
@ -14,8 +13,9 @@ import mage.filter.FilterCard;
import mage.filter.predicate.Predicates; import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.CardTypePredicate; import mage.filter.predicate.mageobject.CardTypePredicate;
import java.util.UUID;
/** /**
*
* @author TheElk801 * @author TheElk801
*/ */
public final class SumalaWoodshaper extends CardImpl { public final class SumalaWoodshaper extends CardImpl {
@ -40,8 +40,9 @@ public final class SumalaWoodshaper extends CardImpl {
// When Sumala Woodshaper enters the battlefield, look at the top four cards of your library. You may reveal a creature or enchantment card from among them and put it into your hand. Put the rest on the bottom of your library in a random order. // When Sumala Woodshaper enters the battlefield, look at the top four cards of your library. You may reveal a creature or enchantment card from among them and put it into your hand. Put the rest on the bottom of your library in a random order.
this.addAbility(new EntersBattlefieldTriggeredAbility(new LookLibraryAndPickControllerEffect( this.addAbility(new EntersBattlefieldTriggeredAbility(new LookLibraryAndPickControllerEffect(
new StaticValue(4), false, new StaticValue(1), filter, Zone.LIBRARY, false, true, false, Zone.HAND, false, false, false new StaticValue(4), false, new StaticValue(1), filter, Zone.LIBRARY, false,
), false)); true, false, Zone.HAND, false, false, false
).setBackInRandomOrder(true), false));
} }
public SumalaWoodshaper(final SumalaWoodshaper card) { public SumalaWoodshaper(final SumalaWoodshaper card) {

View file

@ -1,24 +1,24 @@
package mage.cards.w; package mage.cards.w;
import java.util.UUID;
import mage.MageInt; import mage.MageInt;
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility; import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
import mage.abilities.dynamicvalue.common.StaticValue; import mage.abilities.dynamicvalue.common.StaticValue;
import mage.abilities.effects.common.LookLibraryAndPickControllerEffect; import mage.abilities.effects.common.LookLibraryAndPickControllerEffect;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.CrewAbility; import mage.abilities.keyword.CrewAbility;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.cards.CardSetInfo; import mage.cards.CardSetInfo;
import mage.constants.CardType; import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.constants.Zone; import mage.constants.Zone;
import mage.filter.FilterCard; import mage.filter.FilterCard;
import mage.filter.predicate.mageobject.HistoricPredicate; import mage.filter.predicate.mageobject.HistoricPredicate;
import java.util.UUID;
/** /**
*
* @author TheElk801 * @author TheElk801
*/ */
public final class Weatherlight extends CardImpl { public final class Weatherlight extends CardImpl {
@ -44,9 +44,11 @@ public final class Weatherlight extends CardImpl {
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility( this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(
new LookLibraryAndPickControllerEffect( new LookLibraryAndPickControllerEffect(
new StaticValue(5), false, new StaticValue(1), filter, new StaticValue(5), false, new StaticValue(1), filter,
Zone.LIBRARY, false, true, false, Zone.HAND, true, false, false Zone.LIBRARY, false, true, false, Zone.HAND,
), false true, false, false
).setBackInRandomOrder(true), false
)); ));
// Crew 3 // Crew 3
this.addAbility(new CrewAbility(3)); this.addAbility(new CrewAbility(3));
} }