Provide Data1,2,3 to custom text funcs

Allows users to write a custom text function that freely modifies data1, data2, and data3 on custom texts.
This commit is contained in:
Flamanis
2022-08-09 14:09:42 -05:00
parent c35f6f1180
commit a623d63a1c
+1 -1
View File
@@ -743,7 +743,7 @@
function_cache [str] = func
end
local okey, value = _pcall (func, parameters_cache [1], parameters_cache [2], parameters_cache [3], parameters_cache [4])
local okey, value = _pcall (func, parameters_cache [1], parameters_cache [2], parameters_cache [3], parameters_cache [4], arguments_cache[1], arguments_cache[2], arguments_cache[3])
if (not okey) then
_detalhes:Msg ("|cFFFF9900error on custom text|r:", value)
return 0