mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- 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:
@@ -6,6 +6,7 @@ public enum GameLogEntryType {
|
|||||||
TURN("Turn"),
|
TURN("Turn"),
|
||||||
MULLIGAN("Mulligan"),
|
MULLIGAN("Mulligan"),
|
||||||
ANTE("Ante"),
|
ANTE("Ante"),
|
||||||
|
ZONE_CHANGE("Zone Change"),
|
||||||
PLAYER_CONROL("Player contol"),
|
PLAYER_CONROL("Player contol"),
|
||||||
COMBAT("Combat"),
|
COMBAT("Combat"),
|
||||||
DISCARD("Discard"),
|
DISCARD("Discard"),
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package forge.game.ability.effects;
|
package forge.game.ability.effects;
|
||||||
|
|
||||||
import forge.card.CardStateName;
|
import forge.card.CardStateName;
|
||||||
|
import forge.game.GameLogEntryType;
|
||||||
import forge.game.ability.AbilityUtils;
|
import forge.game.ability.AbilityUtils;
|
||||||
import forge.game.ability.SpellAbilityEffect;
|
import forge.game.ability.SpellAbilityEffect;
|
||||||
import forge.game.card.Card;
|
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
|
// Reveal the milled cards, so players don't have to manually inspect the
|
||||||
// graveyard to figure out which ones were milled.
|
// graveyard to figure out which ones were milled.
|
||||||
if (!facedown && reveal) { // do not reveal when exiling face down
|
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) {
|
if (destination.equals(ZoneType.Exile) && facedown) {
|
||||||
for (final Card c : milled) {
|
for (final Card c : milled) {
|
||||||
|
|||||||
Reference in New Issue
Block a user