UnitIsSameServer
Jump to navigation
Jump to search
Returns true if the unit is from the same (connected) realm.
sameServer = UnitIsSameServer(unit)
Arguments
- unit
- string : UnitId
Returns
- sameServer
- boolean - 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 changes
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.
Patch 4.1.0 (2011-04-26): Added.