refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-06-10 20:19:27 +02:00
parent f19932f783
commit 3b82e8c3b5
+1 -4
View File
@@ -424,10 +424,7 @@ end
function Aux.is_player(name)
local realm = GetCVar('realmName')
if aux_characters[realm] and aux_characters[realm][name] then
return true
end
return UnitName('player') == name
return Aux.util.safe_index(aux_characters, realm, name) or UnitName('player') == name
end
function Aux.unmodified()