[Bug Fix] Fix recipient sound (vtell) on non-player races (#2066)

* [Bug Fix] Fix recipient sound (vtell) on non-player races

* Fix to use BaseRace as intended
This commit is contained in:
Paul Coene
2022-04-02 11:18:10 -04:00
committed by GitHub
parent 5d94c9844a
commit ccd0713b33
+7 -1
View File
@@ -3366,7 +3366,13 @@ bool WorldServer::SendVoiceMacro(Client* From, uint32 Type, char* Target, uint32
svm->Type = Type;
svm->Voice = (GetPlayerRaceValue(From->GetRace()) * 2) + From->GetGender();
uint16 player_race = GetPlayerRaceValue(From->GetRace());
if (player_race == PLAYER_RACE_UNKNOWN) {
player_race = From->GetBaseRace();
}
svm->Voice = (player_race * 2) + From->GetGender();
svm->MacroNumber = MacroNumber;