mtg-forge-ios/forge-gui/res/cardsfolder/h/hedron_alignment.txt

21 lines
1.5 KiB
Plaintext
Raw Normal View History

Name:Hedron Alignment
ManaCost:2 U
Types:Enchantment
K:Hexproof
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigRevealToWin | TriggerDescription$ At the beginning of your upkeep, you may reveal your hand. If you do, you win the game if you own a card named Hedron Alignment in exile, in your hand, in your graveyard, and on the battlefield.
SVar:TrigRevealToWin:DB$ GenericChoice | Choices$ RevealHand,DontReveal | Defined$ You
SVar:DontReveal:DB$ Cleanup | SpellDescription$ Don't Reveal Hand
SVar:RevealHand:DB$ RevealHand | Defined$ You | SubAbility$ WinGame | SpellDescription$ Reveal Hand
SVar:WinGame:DB$ WinsGame | ConditionCheckSVar$ X | ConditionSVarCompare$ EQ4 | References$ A,B,C,D,X,Y,Z
# Combine Hedron Alignments in 4 different zones, cap the count of each zone to 1.
SVar:A:Count$Valid Card.YouOwn+nonToken+namedHedron Alignment/LimitMax.1
SVar:B:Count$ValidHand Card.YouOwn+namedHedron Alignment/LimitMax.1
SVar:C:Count$ValidGraveyard Card.YouOwn+namedHedron Alignment/LimitMax.1
SVar:D:Count$ValidExile Card.YouOwn+namedHedron Alignment/LimitMax.1
# Double addition to try to get up to 4
SVar:X:SVar$Y/Plus.Z
SVar:Y:SVar$A/Plus.B
SVar:Z:SVar$C/Plus.D
A:AB$ Scry | Cost$ 1 U | ScryNum$ 1 | SpellDescription$ Scry 1.
SVar:RemRandomDeck:True
Oracle:Hexproof\nAt the beginning of your upkeep, you may reveal your hand. If you do, you win the game if you own a card named Hedron Alignment in exile, in your hand, in your graveyard, and on the battlefield.\n{1}{U}:Scry 1.