- Add milled cards to the game log instead of showing a popup every single time (useful for small and continuous mill decks like the Landern modern deck)

This commit is contained in:
Sol
2015-06-22 04:02:06 +00:00
parent 105332a6b8
commit 8fecf7cac0
2 changed files with 6 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ public enum GameLogEntryType {
TURN("Turn"),
MULLIGAN("Mulligan"),
ANTE("Ante"),
ZONE_CHANGE("Zone Change"),
PLAYER_CONROL("Player contol"),
COMBAT("Combat"),
DISCARD("Discard"),

View File

@@ -1,6 +1,7 @@
package forge.game.ability.effects;
import forge.card.CardStateName;
import forge.game.GameLogEntryType;
import forge.game.ability.AbilityUtils;
import forge.game.ability.SpellAbilityEffect;
import forge.game.card.Card;
@@ -44,7 +45,10 @@ public class MillEffect extends SpellAbilityEffect {
// Reveal the milled cards, so players don't have to manually inspect the
// graveyard to figure out which ones were milled.
if (!facedown && reveal) { // do not reveal when exiling face down
p.getGame().getAction().reveal(milled, p, false);
//p.getGame().getAction().reveal(milled, p, false);
StringBuilder sb = new StringBuilder();
sb.append(p).append(" milled ").append(milled).append(" to ").append(destination);
p.getGame().getGameLog().add(GameLogEntryType.ZONE_CHANGE, sb.toString());
}
if (destination.equals(ZoneType.Exile) && facedown) {
for (final Card c : milled) {