From cf73e4c7d7525a8c6f8f07a66da87a6fe0d08e22 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sun, 20 Jan 2019 11:41:49 -0500 Subject: [PATCH] fixed some cards which didn't put things on the bottom in a random order --- .../src/mage/cards/i/IncubationIncongruity.java | 2 +- Mage.Sets/src/mage/cards/m/MemorialToUnity.java | 5 +++-- .../src/mage/cards/s/ShimmerOfPossibility.java | 2 +- Mage.Sets/src/mage/cards/s/SumalaWoodshaper.java | 9 +++++---- Mage.Sets/src/mage/cards/w/Weatherlight.java | 16 +++++++++------- 5 files changed, 19 insertions(+), 15 deletions(-) diff --git a/Mage.Sets/src/mage/cards/i/IncubationIncongruity.java b/Mage.Sets/src/mage/cards/i/IncubationIncongruity.java index 9e8278b989..7604c2ab92 100644 --- a/Mage.Sets/src/mage/cards/i/IncubationIncongruity.java +++ b/Mage.Sets/src/mage/cards/i/IncubationIncongruity.java @@ -34,7 +34,7 @@ public final class IncubationIncongruity extends SplitCard { new StaticValue(1), StaticFilters.FILTER_CARD_CREATURE_A, Zone.LIBRARY, false, true, false, Zone.HAND, false, false, false - )); + ).setBackInRandomOrder(true)); // Incongruity // Exile target creature. That creature's controller creates a 3/3 green Frog Lizard creature token. diff --git a/Mage.Sets/src/mage/cards/m/MemorialToUnity.java b/Mage.Sets/src/mage/cards/m/MemorialToUnity.java index 7b28940640..4a60ce8a17 100644 --- a/Mage.Sets/src/mage/cards/m/MemorialToUnity.java +++ b/Mage.Sets/src/mage/cards/m/MemorialToUnity.java @@ -1,7 +1,6 @@ package mage.cards.m; -import java.util.UUID; import mage.abilities.Ability; import mage.abilities.common.EntersBattlefieldTappedAbility; import mage.abilities.common.SimpleActivatedAbility; @@ -18,6 +17,8 @@ import mage.constants.CardType; import mage.constants.Zone; import mage.filter.common.FilterCreatureCard; +import java.util.UUID; + /** * @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. Effect effect = new LookLibraryAndPickControllerEffect( 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.addCost(new TapSourceCost()); diff --git a/Mage.Sets/src/mage/cards/s/ShimmerOfPossibility.java b/Mage.Sets/src/mage/cards/s/ShimmerOfPossibility.java index 7922d3035b..46bfea6cf1 100644 --- a/Mage.Sets/src/mage/cards/s/ShimmerOfPossibility.java +++ b/Mage.Sets/src/mage/cards/s/ShimmerOfPossibility.java @@ -22,7 +22,7 @@ public final class ShimmerOfPossibility extends CardImpl { this.getSpellAbility().addEffect(new LookLibraryAndPickControllerEffect( new StaticValue(4), false, new StaticValue(1), StaticFilters.FILTER_CARD, Zone.LIBRARY, false, false, false, Zone.HAND, false, false, false - )); + ).setBackInRandomOrder(true)); } private ShimmerOfPossibility(final ShimmerOfPossibility card) { diff --git a/Mage.Sets/src/mage/cards/s/SumalaWoodshaper.java b/Mage.Sets/src/mage/cards/s/SumalaWoodshaper.java index 258cf03467..dd6a0db960 100644 --- a/Mage.Sets/src/mage/cards/s/SumalaWoodshaper.java +++ b/Mage.Sets/src/mage/cards/s/SumalaWoodshaper.java @@ -1,6 +1,5 @@ package mage.cards.s; -import java.util.UUID; import mage.MageInt; import mage.abilities.common.EntersBattlefieldTriggeredAbility; import mage.abilities.dynamicvalue.common.StaticValue; @@ -14,8 +13,9 @@ import mage.filter.FilterCard; import mage.filter.predicate.Predicates; import mage.filter.predicate.mageobject.CardTypePredicate; +import java.util.UUID; + /** - * * @author TheElk801 */ 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. this.addAbility(new EntersBattlefieldTriggeredAbility(new LookLibraryAndPickControllerEffect( - new StaticValue(4), false, new StaticValue(1), filter, Zone.LIBRARY, false, true, false, Zone.HAND, false, false, false - ), false)); + new StaticValue(4), false, new StaticValue(1), filter, Zone.LIBRARY, false, + true, false, Zone.HAND, false, false, false + ).setBackInRandomOrder(true), false)); } public SumalaWoodshaper(final SumalaWoodshaper card) { diff --git a/Mage.Sets/src/mage/cards/w/Weatherlight.java b/Mage.Sets/src/mage/cards/w/Weatherlight.java index 8caf7d30bc..64498880c3 100644 --- a/Mage.Sets/src/mage/cards/w/Weatherlight.java +++ b/Mage.Sets/src/mage/cards/w/Weatherlight.java @@ -1,24 +1,24 @@ package mage.cards.w; -import java.util.UUID; import mage.MageInt; import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility; import mage.abilities.dynamicvalue.common.StaticValue; 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.FlyingAbility; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.SuperType; import mage.constants.Zone; import mage.filter.FilterCard; import mage.filter.predicate.mageobject.HistoricPredicate; +import java.util.UUID; + /** - * * @author TheElk801 */ public final class Weatherlight extends CardImpl { @@ -44,9 +44,11 @@ public final class Weatherlight extends CardImpl { this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility( new LookLibraryAndPickControllerEffect( new StaticValue(5), false, new StaticValue(1), filter, - Zone.LIBRARY, false, true, false, Zone.HAND, true, false, false - ), false + Zone.LIBRARY, false, true, false, Zone.HAND, + true, false, false + ).setBackInRandomOrder(true), false )); + // Crew 3 this.addAbility(new CrewAbility(3)); }