ULG: Mine, Mine, Mine!

This commit is contained in:
Hythonia
2021-03-06 12:02:38 +01:00
parent d671eed1bd
commit 849c1faaff
2 changed files with 15 additions and 1 deletions

View File

@@ -2101,7 +2101,10 @@ public class Player extends GameEntity implements Comparable<Player> {
// since the last time state-based actions were checked, he or she loses the game.
if (triedToDrawFromEmptyLibrary) {
triedToDrawFromEmptyLibrary = false; // one-shot check
return loseConditionMet(GameLossReason.Milled, null);
// Mine, Mine, Mine! prevents decking
if (!hasKeyword("You don't lose the game for drawing from an empty library.")) {
return loseConditionMet(GameLossReason.Milled, null);
}
}
// Rule 704.5c - If a player has ten or more poison counters, he or she loses the game.

View File

@@ -0,0 +1,11 @@
Name:Mine, Mine, Mine!
ManaCost:4 G G
Types:Enchantment
T:Mode$ ChangesZone | ValidCard$ Card.Self | Destination$ Battlefield | Execute$ TrigChangeZone | TriggerDescription$ When CARDNAME enters the battlefield, each player puts their library into their hand.
SVar:TrigChangeZone:DB$ ChangeZoneAll | ChangeType$ Card | Origin$ Library | Destination$ Hand
S:Mode$ Continuous | Affected$ Player | SetMaxHandSize$ Unlimited | Description$ Players don't lose the game for drawing from an empty library.
S:Mode$ Continuous | Affected$ Player | Secondary$ True | AddKeyword$ You don't lose the game for drawing from an empty library. | Description$ Players don't lose the game for drawing from an empty library.
S:Mode$ CantBeCast | ValidCard$ Card | Caster$ Player | NumLimitEachTurn$ 1 | Description$ Each player can't cast more than one spell each turn.
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Battlefield | Execute$ TrigShuffleBack | TriggerDescription$ When CARDNAME leaves the battlefield, each player shuffles their hand and graveyard into their library.
SVar:TrigShuffleBack:DB$ ChangeZoneAll | ChangeType$ Card | Origin$ Hand,Graveyard | Destination$ Library | Shuffle$ True | Random$ True
Oracle:When Mine, Mine, Mine! enters the battlefield, each player puts their library into their hand.\nPlayers have no maximum hand size and don't lose the game for drawing from an empty library.\nEach player can't cast more than one spell each turn.\nWhen Mine, Mine, Mine! leaves the battlefield, each player shuffles their hand and graveyard into their library.