mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
16 lines
1.2 KiB
Plaintext
16 lines
1.2 KiB
Plaintext
Name:Windfall
|
|
ManaCost:2 U
|
|
Types:Sorcery
|
|
A:SP$ RepeatEach | Cost$ 2 U | RepeatPlayers$ Player | RepeatSubAbility$ WindfallDiscard | SubAbility$ WindfallDraw | SpellDescription$ Each player discards his or her hand, then draws cards equal to the greatest number of cards a player discarded this way.
|
|
SVar:WindfallDiscard:DB$ Discard | Defined$ Player.IsRemembered | Mode$ Hand | RememberDiscarded$ True | SubAbility$ WindfallSaveAmount
|
|
SVar:WindfallSaveAmount:DB$ StoreSVar | SVar$ MaxDiscard | Type$ CountSVar | Expression$ NumDiscard | ConditionCheckSVar$ NumDiscard | ConditionSVarCompare$ GTMaxDiscard | SubAbility$ WindfallCleanUp
|
|
SVar:WindfallCleanUp:DB$ Cleanup | ClearRemembered$ True
|
|
SVar:WindfallDraw:DB$ Draw | Defined$ Each | NumCards$ MaxDiscard | SubAbility$ WindfallReset
|
|
SVar:WindfallReset:DB$ StoreSVar | SVar$ MaxDiscard | Type$ Number | Expression$ 0
|
|
SVar:NumDiscard:Count$RememberedSize/Minus.1
|
|
SVar:MaxDiscard:Number$0
|
|
SVar:RemAIDeck:True
|
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/windfall.jpg
|
|
Oracle:Each player discards his or her hand, then draws cards equal to the greatest number of cards a player discarded this way.
|
|
SetInfo:COM Uncommon
|
|
SetInfo:USG Uncommon |