LenweSaralonde / Musician

Add-on for World of Warcraft to perform music in game.
https://musician.lenwe.io
GNU General Public License v3.0
11 stars 4 forks source link

Deal with phasing in Musician.Registry.PlayerIsInRange() #5

Closed LenweSaralonde closed 5 years ago

LenweSaralonde commented 5 years ago

Musician.Registry.PlayerIsInRange() returns true if the player is in range to hear the music. It does not take account of phasing so music coming from another phase or server shard can still be heard.

The C_PlayerInfo.IsConnected() function seems to address this.

C_PlayerInfo.IsConnected(PlayerLocation:CreateFromGUID(guid))