lua写的变量多少给英雄BUFF,然后主号死了,M2就报错,主号在地上躺着。英雄就不触发BUFF了 ,这个应该如何写啊大哥们
if ActorRace == 66 then
local play = Actor:getMaster()
local u81 = play:getVal_U(81)
下面正常写的IF。。主号活着时候正常,死了M2就报错。英雄就不触发了
2022-10-30 16:58:16 {220914} [string "D:\MirServer\Mir200\LuaScripts\System\skill.Lua"]:166: attempt to index a nil value (local 'play')
stack traceback:
[string "D:\MirServer\Mir200\LuaScripts\System\skill.Lua"]:166: in function 'SpellSkill_10010'