View Single Post
01/08/16, 08:59 PM   #6
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by coolmodi View Post
Oh yes I can, at least if I'm not totally wrong and miss something really obvious
...
--if a name contains a "^" it isn't a general mob, and in any case(?) at least unique, or unique enough to not make problems
Nice, if that's true then you are correct. I did not know that mob names do not contain a ^. If mobs don't have ^ then that would fix that problem and yes as long as its a player the names are unique.

Just fyi so you don't end up with a bug:
Lua Code:
  1. if unitName == "" and (unitType ~= 3 or unitType ~= 1) then return end
  2.  
  3. -- this doesn't do anything, its always true:
  4. -- and (unitType ~= 3 or unitType ~= 1)

Last edited by circonian : 01/08/16 at 09:04 PM.
  Reply With Quote