mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- BNG: Added Heroes' Podium
This commit is contained in:
@@ -4,8 +4,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
|
||||||
|
|
||||||
import forge.card.CardCharacteristicName;
|
import forge.card.CardCharacteristicName;
|
||||||
import forge.game.Game;
|
import forge.game.Game;
|
||||||
import forge.game.ability.AbilityUtils;
|
import forge.game.ability.AbilityUtils;
|
||||||
@@ -18,7 +16,6 @@ import forge.game.spellability.TargetRestrictions;
|
|||||||
import forge.game.zone.PlayerZone;
|
import forge.game.zone.PlayerZone;
|
||||||
import forge.game.zone.ZoneType;
|
import forge.game.zone.ZoneType;
|
||||||
import forge.util.Lang;
|
import forge.util.Lang;
|
||||||
import forge.util.MyRandom;
|
|
||||||
|
|
||||||
public class DigEffect extends SpellAbilityEffect {
|
public class DigEffect extends SpellAbilityEffect {
|
||||||
|
|
||||||
@@ -195,8 +192,7 @@ public class DigEffect extends SpellAbilityEffect {
|
|||||||
Card chosen = chooser.getController().chooseSingleEntityForEffect(valid, sa, prompt, false, p);
|
Card chosen = chooser.getController().chooseSingleEntityForEffect(valid, sa, prompt, false, p);
|
||||||
movedCards.remove(chosen);
|
movedCards.remove(chosen);
|
||||||
if (sa.hasParam("RandomOrder")) {
|
if (sa.hasParam("RandomOrder")) {
|
||||||
final Random random = MyRandom.getRandom();
|
CardLists.shuffle(movedCards);
|
||||||
Collections.shuffle(movedCards, random);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -287,7 +283,9 @@ public class DigEffect extends SpellAbilityEffect {
|
|||||||
// now, move the rest to destZone2
|
// now, move the rest to destZone2
|
||||||
if (destZone2 == ZoneType.Library || destZone2 == ZoneType.PlanarDeck || destZone2 == ZoneType.SchemeDeck) {
|
if (destZone2 == ZoneType.Library || destZone2 == ZoneType.PlanarDeck || destZone2 == ZoneType.SchemeDeck) {
|
||||||
List<Card> afterOrder = rest;
|
List<Card> afterOrder = rest;
|
||||||
if (!skipReorder && rest.size() > 1) {
|
if (sa.hasParam("RestRandomOrder")) {
|
||||||
|
CardLists.shuffle(afterOrder);
|
||||||
|
} else if (!skipReorder && rest.size() > 1) {
|
||||||
afterOrder = chooser.getController().orderMoveToZoneList(rest, destZone2);
|
afterOrder = chooser.getController().orderMoveToZoneList(rest, destZone2);
|
||||||
}
|
}
|
||||||
if (libraryPosition2 != -1) {
|
if (libraryPosition2 != -1) {
|
||||||
|
|||||||
@@ -2,6 +2,6 @@ Name:Interplanar Tunnel
|
|||||||
ManaCost:no cost
|
ManaCost:no cost
|
||||||
Types:Phenomenon
|
Types:Phenomenon
|
||||||
T:Mode$ PlaneswalkedTo | ValidCard$ Card.Self | TriggerZones$ Command | Execute$ TrigDig | TriggerDescription$ When you encounter CARDNAME, reveal cards from the top of your planar deck until you reveal five plane cards. Put a plane card from among them on top of your planar deck, then put the rest of the revealed cards on the bottom in a random order. (Then planeswalk away from this phenomenon.)
|
T:Mode$ PlaneswalkedTo | ValidCard$ Card.Self | TriggerZones$ Command | Execute$ TrigDig | TriggerDescription$ When you encounter CARDNAME, reveal cards from the top of your planar deck until you reveal five plane cards. Put a plane card from among them on top of your planar deck, then put the rest of the revealed cards on the bottom in a random order. (Then planeswalk away from this phenomenon.)
|
||||||
SVar:TrigDig:DB$ Dig | DigNum$ 5 | ChangeNum$ 1 | SourceZone$ PlanarDeck | DestinationZone$ PlanarDeck | DestinationZone2$ PlanarDeck | LibraryPosition$ 0 | ChangeValid$ Plane | SubAbility$ Replaneswalk
|
SVar:TrigDig:DB$ Dig | DigNum$ 5 | ChangeNum$ 1 | SourceZone$ PlanarDeck | DestinationZone$ PlanarDeck | DestinationZone2$ PlanarDeck | LibraryPosition$ 0 | ChangeValid$ Plane | RestRandomOrder$ True | SubAbility$ Replaneswalk
|
||||||
SVar:Replaneswalk:DB$ Planeswalk | Cost$ 0
|
SVar:Replaneswalk:DB$ Planeswalk | Cost$ 0
|
||||||
Oracle:When you encounter Interplanar Tunnel, reveal cards from the top of your planar deck until you reveal five plane cards. Put a plane card from among them on top of your planar deck, then put the rest of the revealed cards on the bottom in a random order. (Then planeswalk away from this phenomenon.)
|
Oracle:When you encounter Interplanar Tunnel, reveal cards from the top of your planar deck until you reveal five plane cards. Put a plane card from among them on top of your planar deck, then put the rest of the revealed cards on the bottom in a random order. (Then planeswalk away from this phenomenon.)
|
||||||
Reference in New Issue
Block a user