Join The Fan Lab, a private Fandom research community for users in the US and UK where you will be asked to share your opinions on all things gaming and entertainment! Click here to see if you qualify


From Wowpedia
Jump to: navigation, search

Returns whether the specified unit is from the player's own realm (or, equivalently, a linked Connected Realm).

sameServer = UnitIsSameServer("unit")


String - unitId of a unit to query.


Flag - 1 if the specified unit is from the player's realm (or a Connected Realm linked to the player's own realm), nil otherwise.

Patch History

Mists of Pandaria Patch 5.4.0 (2013-09-10): First parameter argument; now always compares the realm of the specified unit to the player's own realm.

Cataclysm Patch 4.1.0 (2011-04-26): Added.

See also