Originally Posted by coolmodi
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:
if unitName == "" and (unitType ~= 3 or unitType ~= 1) then return end
-- this doesn't do anything, its always true:
-- and (unitType ~= 3 or unitType ~= 1)