- Plane: Added Akoum and Grove of the Dreampods

This commit is contained in:
swordshine
2013-05-22 04:37:38 +00:00
parent 7cd1e65ecb
commit 3106020e8c
5 changed files with 31 additions and 3 deletions

View File

@@ -1,8 +1,10 @@
package forge.card.ability.effects;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
import forge.Card;
import forge.card.ability.AbilityUtils;
@@ -14,6 +16,7 @@ import forge.game.player.Player;
import forge.game.zone.PlayerZone;
import forge.game.zone.ZoneType;
import forge.gui.GuiChoose;
import forge.util.MyRandom;
public class DigUntilEffect extends SpellAbilityEffect {
@@ -154,6 +157,10 @@ public class DigUntilEffect extends SpellAbilityEffect {
host.addImprinted(c);
}
}
if (sa.hasParam("RevealRandomOrder")) {
final Random random = MyRandom.getRandom();
Collections.shuffle(revealed, random);
}
// TODO Use getOrderChoices before this moveTo call for the Human
final Iterator<Card> itr = revealed.iterator();