This commit is contained in:
2024-06-05 18:59:57 +02:00
parent 312cff3f68
commit 1c89ffa29d
2 changed files with 7 additions and 2 deletions

View File

@@ -7,5 +7,6 @@ function(e, source)
local name = UnitName("target") local name = UnitName("target")
if not name then return end if not name then return end
if not aura_env.me then aura_env.me = UnitName("player") end if not aura_env.me then aura_env.me = UnitName("player") end
SendChatMessage(".ch " .. name, "WHISPER", nil, aura_env.me) local msg = ".ch " .. name
SendChatMessage(msg, "WHISPER", nil, aura_env.me)
end end

View File

@@ -175,6 +175,10 @@ Key = {
return true return true
end end
return false return false
end,
---@param self Key
register = function(self)
WeakAurasSaved.Cyka.MData[self:hash()] = self
end end
} }
@@ -201,10 +205,10 @@ function aura_env.Process()
score = string.gsub(score, "%s+", "") score = string.gsub(score, "%s+", "")
local keyObj = Key.new(key, role, level, time, score) local keyObj = Key.new(key, role, level, time, score)
keyObj:register()
if key then if key then
keys[#keys + 1] = keyObj keys[#keys + 1] = keyObj
end end
WeakAurasSaved.Cyka.MData[keyObj:hash()] = keyObj
end end
table.sort(keys, Key.compareTo) table.sort(keys, Key.compareTo)
render(keys) render(keys)