slash refactoring, characters now per realm

This commit is contained in:
Manuel Simon Hirsig
2016-06-10 13:20:48 +02:00
parent b22fc812c0
commit 4bc1d6b53b
2 changed files with 44 additions and 66 deletions
+5 -6
View File
@@ -1,5 +1,5 @@
Aux = {
version = '2.13.4',
version = '2.13.5',
blizzard_ui_shown = false,
orig = {},
}
@@ -423,11 +423,10 @@ function Aux.show_elements(elements)
end
function Aux.is_player(name)
for i,v in ipairs(aux_characters) do
if aux_characters[i] == name then
return true
end
end
local realm = GetCVar('realmName')
if aux_characters[realm][name] then
return true
end
return UnitName('player') == name
end