mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Added Three Wishes
This commit is contained in:
@@ -18,6 +18,7 @@ public class MillEffect extends SpellAbilityEffect {
|
||||
final Card source = sa.getHostCard();
|
||||
final int numCards = AbilityUtils.calculateAmount(sa.getHostCard(), sa.getParam("NumCards"), sa);
|
||||
final boolean bottom = sa.hasParam("FromBottom");
|
||||
final boolean facedown = sa.hasParam("ExileFaceDown");
|
||||
|
||||
if (sa.hasParam("ForgetOtherRemembered")) {
|
||||
source.clearRemembered();
|
||||
@@ -38,8 +39,8 @@ public class MillEffect extends SpellAbilityEffect {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
final CardCollectionView milled = p.mill(numCards, destination, bottom);
|
||||
if (destination.equals(ZoneType.Exile) && sa.hasParam("ExileFaceDown")) {
|
||||
final CardCollectionView milled = p.mill(numCards, destination, bottom, facedown);
|
||||
if (destination.equals(ZoneType.Exile) && facedown) {
|
||||
for (final Card c : milled) {
|
||||
c.setState(CardStateName.FaceDown, true);
|
||||
}
|
||||
|
||||
@@ -1303,9 +1303,10 @@ public class Player extends GameEntity implements Comparable<Player> {
|
||||
}
|
||||
|
||||
public final CardCollectionView mill(final int n) {
|
||||
return mill(n, ZoneType.Graveyard, false);
|
||||
return mill(n, ZoneType.Graveyard, false, false);
|
||||
}
|
||||
public final CardCollectionView mill(final int n, final ZoneType zone, final boolean bottom) {
|
||||
public final CardCollectionView mill(final int n, final ZoneType zone,
|
||||
final boolean bottom, final boolean facedown) {
|
||||
final CardCollectionView lib = getCardsIn(ZoneType.Library);
|
||||
final CardCollection milled = new CardCollection();
|
||||
|
||||
@@ -1323,7 +1324,9 @@ public class Player extends GameEntity implements Comparable<Player> {
|
||||
}
|
||||
// Reveal the milled cards, so players don't have to manually inspect the
|
||||
// graveyard to figure out which ones were milled.
|
||||
game.getAction().reveal(milled, this, false);
|
||||
if (!facedown) { // do not reveal when exiling face down
|
||||
game.getAction().reveal(milled, this, false);
|
||||
}
|
||||
return milled;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user