[BUG] Macro Translator edits functions that contain /cast directives
TimothyLuke opened this issue ยท 2 comments
๐ต 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
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