Lua 오류가 계속 떠서 능력자분들의 조언을 구합니다ㅠㅠ
계속 떠서 핵패스가 어렵네요ㅠㅠ...


Message: [string "t=Unitname("target") or "대상 없음" Sen..."]:1: attempt to call global 'Unitname' (a nil value)
Time: Sat Sep 25 17:29:01 2021
Count: 2
Stack: [string "t=Unitname("target") or "대상 없음" Sen..."]:1: attempt to call global 'Unitname' (a nil value)
[string "t=Unitname("target") or "대상 없음" SendChatMessage("[-"..t.." -]님께 오염된 핵을 보냅니다.", "WHISPER", nil, t)"]:1: in main chunk
[string "=[C]"]: in function `RunScript'
[string "@InterfaceFrameXMLChatFrame.lua"]:2160: in function `?'
[string "@InterfaceFrameXMLChatFrame.lua"]:4825: in function `ChatEdit_ParseText'
[string "@InterfaceFrameXMLChatFrame.lua"]:4488: in function `ChatEdit_SendText'
[string "@InterfaceFrameXMLChatFrame.lua"]:2916: in function <InterfaceFrameXMLChatFrame.lua:2909>
[string "=[C]"]: in function `UseAction'
[string "@InterfaceFrameXMLSecureTemplates.lua"]:338: in function `handler'
[string "@InterfaceFrameXMLSecureTemplates.lua"]:616: in function `SecureActionButton_OnClick'
[string "*:OnClick"]:4: in function <[string "*:OnClick"]:1>

Locals: (*temporary) = nil
(*temporary) = "target"
(*temporary) = "attempt to call global 'Unitname' (a nil value)"