RATools icon indicating copy to clipboard operation
RATools copied to clipboard

[Bug] disable_when() appears to be optimized out when used in function partway up the call stack

Open MagmarFire opened this issue 4 months ago • 1 comments

I'm encountering a strange issue where a use of disable_when() does not get applied when I use it in one function but not another. Please refer to the following code:

Image

I expect this to create a ResetNextIf + AndNext + PauseIf chain, but it doesn't do that, per this screenshot:

Image

Bizarrely, though, when I move the function one level lower in the call stack, it does create the chain as expected:

Image Image

I've attached a version of the script that demonstrates the behavior.

Legend of Zelda, The Skyward Sword - Copy.rascript.txt

MagmarFire avatar Dec 08 '25 23:12 MagmarFire