Lua Code:
unitID = ...
realmName = GetRealmName()
UNTI = GetUnitName(unitID, true); -- return name-realm
if not string.find(UNTI, '%-') then -- no realm
CUNTI = UNTI.."-"..realmName;
elseif string.find(UNTI, '% ') then -- for respect mobs
UNTI = UNTI;
end
if BangHateds[UNTI] or BangHateds[CUNTI] then
Thanks for help!