mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Update unleash_the_flux.txt (#4250)
* Update unleash_the_flux.txt Fixes a crash that would occur from a memory buffer overflow whenever the AbilityFactory tries to create Unleash the Flux's ability, due to the SubAbility loop in the previous script for that card
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
Name:Unleash the Flux
|
Name:Unleash the Flux
|
||||||
ManaCost:no cost
|
ManaCost:no cost
|
||||||
Types:Phenomenon
|
Types:Phenomenon
|
||||||
T:Mode$ PlaneswalkedTo | ValidCard$ Card.Self | Execute$ TrigEffect | TriggerDescription$ When you encounter CARDNAME, each player sacrifices a nonland permanent, then you flip a coin. If you lose the flip, repeat this process. (Then planeswalk away from this phenomenon.)
|
T:Mode$ PlaneswalkedTo | ValidCard$ Card.Self | Execute$ TrigEffect | TriggerDescription$ When you encounter CARDNAME, each player sacrifices a nonland permanent, then you flip a coin. If you lose the flip, repeat this process. (Then planeswalk away from this phenomenon.)
|
||||||
SVar:TrigEffect:DB$ Sacrifice | Defined$ Player | SacValid$ Permanent.nonLand | SubAbility$ DBCoin
|
SVar:TrigEffect:DB$ Repeat | RepeatCheckSVar$ PlayerCountRemembered$HasPropertyYou | RepeatSVarCompare$ GT0 | RepeatSubAbility$ DBSacrifice
|
||||||
SVar:DBCoin:DB$ FlipACoin | WinSubAbility$ PWAway | LoseSubAbility$ TrigEffect
|
SVar:DBSacrifice:DB$ Sacrifice | Defined$ Player | SacValid$ Permanent.nonLand | SubAbility$ DBCoin
|
||||||
SVar:PWAway:DB$ Planeswalk
|
SVar:DBCoin:DB$ FlipACoin | RememberLoser$ True | WinSubAbility$ PWAway
|
||||||
|
SVar:PWAway:DB$ Planeswalk | SubAbility$ DBCleanup
|
||||||
|
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
|
||||||
Oracle:When you encounter Unleash the Flux, each player sacrifices a nonland permanent, then you flip a coin. If you lose the flip, repeat this process. (Then planeswalk away from this phenomenon.)
|
Oracle:When you encounter Unleash the Flux, each player sacrifices a nonland permanent, then you flip a coin. If you lose the flip, repeat this process. (Then planeswalk away from this phenomenon.)
|
||||||
Reference in New Issue
Block a user