Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
Does not return realm Edit
Seems that this function no longer returns the realm and only returns the name. Have to use GetRealmName() to get realm. Can someone confirm this? --Vinaur 7:38, 02 Jan 2007
It works fine, just tested it. It has two cases where it doesn't return realm however, one is when they are from the same realm as you, and the other is when they are more then 100 yards away from you. -- Shadow 12:49, 3 January 2007 (EST)
nil Return Changed in the Last Patch (2.2)Edit
UnitName("target"), UnitName("focus"), UnitName("raid#"), UnitName("party#"), etc... no longer return nil when the unit doesn't exist, it returns "Unknown" --Thoughtlover 04:06, 28 September 2007 (UTC)
Bug Fixed in 2.3Edit
During 2.2, UnitName was bugged. UnitName returned "Unknown" if not applicable, or nil if the unit code itself is invalid (such as "xyz"). This was fixed in 2.3. () Thoughtlover 20:00, 19 December 2007 (UTC)