- Simple scripts for Windfall

This commit is contained in:
swordshine
2014-03-12 12:17:30 +00:00
parent 64f32e0008
commit c056a98347

View File

@@ -1,14 +1,11 @@
Name:Windfall Name:Windfall
ManaCost:2 U ManaCost:2 U
Types:Sorcery 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. A:SP$ Discard | Cost$ 2 U | Defined$ Each | Mode$ Hand | RememberDiscarded$ True | 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:WindfallDraw:DB$ Draw | Defined$ Each | NumCards$ X | References$ X | SubAbility$ WindfallCleanup
SVar:WindfallSaveAmount:DB$ StoreSVar | SVar$ MaxDiscard | Type$ CountSVar | Expression$ NumDiscard | ConditionCheckSVar$ NumDiscard | ConditionSVarCompare$ GTMaxDiscard | References$ NumDiscard | SubAbility$ WindfallCleanUp SVar:WindfallCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:WindfallCleanUp:DB$ Cleanup | ClearRemembered$ True #some cards may allow you to discard to other zones
SVar:WindfallDraw:DB$ Draw | Defined$ Each | NumCards$ MaxDiscard | References$ MaxDiscard | SubAbility$ WindfallReset SVar:X:PlayerCountPlayers$HighestValidGraveyard,Library,Exile Card.IsRemembered+YouOwn
SVar:WindfallReset:DB$ StoreSVar | SVar$ MaxDiscard | Type$ Number | Expression$ 0
SVar:NumDiscard:Count$RememberedSize/Minus.1
SVar:MaxDiscard:Number$0
SVar:RemAIDeck:True SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/windfall.jpg 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. Oracle:Each player discards his or her hand, then draws cards equal to the greatest number of cards a player discarded this way.