mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Modify previous commit to expected behavior
This commit is contained in:
@@ -248,7 +248,8 @@ uint32 CreatureTextMgr::SendChat(Creature* source, uint8 textGroup, WorldObject
|
||||
if (sound)
|
||||
finalSound = sound;
|
||||
else if (BroadcastTextEntry const* bct = sBroadcastTextStore.LookupEntry(iter->BroadcastTextId))
|
||||
finalSound = bct->SoundID[source->getGender() == GENDER_FEMALE ? 1 : 0];
|
||||
if (uint32 broadcastTextSoundId = bct->SoundID[source->getGender() == GENDER_FEMALE ? 1 : 0])
|
||||
finalSound = broadcastTextSoundId;
|
||||
|
||||
if (range == TEXT_RANGE_NORMAL)
|
||||
range = iter->TextRange;
|
||||
|
||||
Reference in New Issue
Block a user