Commit 1c32a1b9 authored by whenmo's avatar whenmo Committed by GitHub

Update IllegalFunctionCheck

parent 0acb55e2
......@@ -1374,12 +1374,13 @@ function VgF.PlayerEffect(e, tp, eg, ep, ev, re, r, rp)
return true
end
---创建一个函数检查器 检查func是否为nil或函数
function VgF.IllegalFunctionCheck(name)
function VgF.IllegalFunctionCheck(name, c)
local m = c:GetOriginalCode()
local chk = function(key)
return function(func)
local ftyp = type(func)
if ftyp == "nil" or ftyp == "function" then return false end
Debug.Message("c"..self_code.." VgD."..name.." param "..key.." isn't function | nil")
Debug.Message("c"..m.." VgD."..name.." param "..key.." isn't function | nil")
return true
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment