Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API UnitIsSameServer

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