GSE: Sequences, Variables, Macros

GSE: Sequences, Variables, Macros

6M Downloads

[BUG] Macro Translator edits functions that contain /cast directives

TimothyLuke opened this issue ยท 2 comments

commented

๐Ÿ”ต Describe the bug:
When creating a function, if that function includes a /cast line the return command and anything to the left of the /cast is truncated.

๐Ÿ”ต To reproduce:
enter the following into a function:

function()
  if UnitIsBossMob("target") then
    return ""
  else
    return "/cast Avenging Wrath"
  end
end

๐Ÿ”ต The error:
Paste the error message in this blockquote.

function()
 if UnitIsBossMob("Target") then
/cast Avenging Wrath"
 else
 return ""
 end
end

This cuts off the return " from in front of the /cast

commented

the work around this is to use [['s and multi line the return

function()
 if UnitIsBossMob("Target") then
  return [[
/cast Avenging Wrath
]]
 else
 return [[
/click METHOD_HEALING LeftButton t 
]]
 end
end
commented

as the work around is functional and practical, I'm going to close this out.