View Single Post
08-05-17, 11:17 PM   #12
Mortimerlol
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Jul 2017
Posts: 71
[solved]

Lua Code:
  1. unitID = ...
  2.     realmName = GetRealmName()
  3.     UNTI = GetUnitName(unitID, true); -- return name-realm
  4.     if not string.find(UNTI, '%-') then -- no realm
  5.         CUNTI = UNTI.."-"..realmName;
  6.     elseif string.find(UNTI, '% ') then -- for respect mobs
  7.         UNTI = UNTI;
  8.     end
  9.    if BangHateds[UNTI] or BangHateds[CUNTI] then
Thanks for help!
  Reply With Quote