mirror of
https://github.com/Relintai/mtg-forge-ios.git
synced 2024-12-21 07:16:52 +01:00
29260c205d
git-svn-id: http://svn.slightlymagic.net/forge/trunk@35700 269b9781-a132-4a9b-9d4e-f004f1b56b58
21 lines
1.5 KiB
Plaintext
21 lines
1.5 KiB
Plaintext
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. |