Skip to content

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

@MagmarFire

Description

@MagmarFire

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions