→ WoW API
Determines if the two units supplied are from the same server. It is important to note that it returns nil rather than false, nil is treated like false for most operations but it is *not* a proper boolean.
if (UnitIsSameServer(UnitId, "player")) then --Unit is from the same server as the player else --Unit is from a different server end
Community content is available under CC-BY-SA unless otherwise noted.