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:
Klisz
2023-12-02 00:53:40 -07:00
committed by GitHub
parent cacc5d667f
commit dabaca10a2

View File

@@ -2,7 +2,9 @@ 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.)