mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[10627] Use ObjectGuid for player's selection and unit's target
This commit is contained in:
parent
e74d56f9d2
commit
c955941b55
21 changed files with 66 additions and 73 deletions
|
|
@ -270,7 +270,7 @@ bool ChatHandler::HandleDebugPlaySoundCommand(char* args)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (m_session->GetPlayer()->GetSelection())
|
||||
if (!m_session->GetPlayer()->GetSelectionGuid().IsEmpty())
|
||||
unit->PlayDistanceSound(dwSoundId,m_session->GetPlayer());
|
||||
else
|
||||
unit->PlayDirectSound(dwSoundId,m_session->GetPlayer());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue