Update
This commit is contained in:
@@ -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
|
@@ -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)
|
||||||
|
Reference in New Issue
Block a user