Poster: Kirov at 9/25/2005 12:08:30 AM PDT Subject: UnitExists() true but UnitName() nil?
There are a number of mods that do a UnitExists() check on a unit before doing a UnitName() check. Since 1.7, it appears that it's possible for UnitExists to return true, but UnitName() to return nil. I don't think this was ever the case for 1.6, it would at least return "Unknown Entity", not nil.
Poster: slouken at 9/26/2005 11:30:15 AM PDT Subject: Re: UnitExists() true but UnitName() nil?
This is a perfectly legal situation.
In this case:
1. UnitExists() returns true (because the unit is in the raid group)
2. UnitIsVisible() returns false (because the unit is not in the area of interest)
3. UnitName() returns nil (because we don't have information from the server yet)
You will get a name update when the name information arrives from the server.