TimothyLuke / GSE-Advanced-Macro-Compiler

GSE is an alternative advanced macro editor and engine for World of Warcraft.
https://discord.gg/gseunited
MIT License
216 stars 73 forks source link

[BUG] Block IF #1578

Closed Nereziel closed 3 months ago

Nereziel commented 3 months ago

🔵 Describe the bug: Changing variable in Block Type: If will always be =true

🔵 To reproduce: (Steps to reproduce the behavior) Create Sequence, add Block Type: If and change Variable to =false or =GSE.V["checkRaceOrc"](). After saving, reopen sequence and it will still stay =true.

Used checkRaceOrc:

function() 
    local race = UnitRace("player")
    if race == "Orc" then 
        return true 
    else 
        return false 
    end 
end

🔵 The error: Paste the error message in this blockquote.

no error shown

🔵 Screenshots: image image

🔵 Expected behavior: A clear and concise description of what you expected to happen.

🔵 GSE.lua file: GSE - kopie.lua.txt

🔵 Desktop (please complete the following information):

🔵 GSE Version:

🔵 Additional context: Add any other context about the problem here.