- Converted Winds of Change to use RepeatEach so moomarc can use it as an example

This commit is contained in:
Sol
2012-12-14 14:38:28 +00:00
parent 920178c239
commit 61de4946bf

View File

@@ -2,13 +2,12 @@ Name:Winds of Change
ManaCost:R
Types:Sorcery
Text:no text
A:SP$ ChangeZoneAll | Cost$ R | Defined$ You | Origin$ Hand | Destination$ Library | LibraryPosition$ -1 | RememberChanged$ True | ForgetOtherRemembered$ True | Shuffle$ True | SubAbility$ WindDraw | SpellDescription$ Each player shuffles the cards from his or her hand into his or her library, then draws that many cards.
SVar:WindDraw:DB$Draw | NumCards$ X | Defined$ You | SubAbility$ CleanTheWind
SVar:CleanTheWind:DB$Cleanup | ClearRemembered$ True | SubAbility$ WindOpp
SVar:WindOpp:DB$ ChangeZoneAll | Defined$ Opponent | Origin$ Hand | Destination$ Library | LibraryPosition$ -1 | RememberChanged$ True | ForgetOtherRemembered$ True | Shuffle$ True | SubAbility$ WindDrawOpp
SVar:WindDrawOpp:DB$Draw | NumCards$ X | Defined$ Opponent | SubAbility$ DBCleanup
SVar:DBCleanup:DB$Cleanup | ClearRemembered$ True
SVar:X:Remembered$Amount
A:SP$ RepeatEach | Cost$ R | RepeatPlayers$ Player | RepeatSubAbility$ ShuffleHand | SpellDescription$ Each player shuffles the cards from his or her hand into his or her library, then draws that many cards.
SVar:ShuffleHand:DB$ ChangeZoneAll | Defined$ Player.IsRemembered | Origin$ Hand | Destination$ Library | LibraryPosition$ -1 | RememberChanged$ True | Shuffle$ True | SubAbility$ WindDraw
SVar:WindDraw:DB$Draw | NumCards$ X | Defined$ Player.IsRemembered | SubAbility$ CleanTheWind
SVar:CleanTheWind:DB$Cleanup | ClearRemembered$ True
SVar:X:Remembered$Amount/Minus.1
# Amount Minus 1 because the Player is also being remembered at this point
SVar:RemRandomDeck:True
SVar:RemAIDeck:True
SVar:Rarity:Uncommon