Files
wow-weakauras/FreshShit/RIOChecker/event2.lua
2024-06-05 18:59:57 +02:00

12 lines
418 B
Lua

-- UNIT_TARGET
function(e, source)
if not source then return end
if not source == "player" then return end
if not UnitExists("target") then return end
if not UnitIsPlayer("target") then return end
local name = UnitName("target")
if not name then return end
if not aura_env.me then aura_env.me = UnitName("player") end
local msg = ".ch " .. name
SendChatMessage(msg, "WHISPER", nil, aura_env.me)
end