mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 20:56:23 +00:00
refactor(Core/Unit): clean MonsterText methods (#6957)
This commit is contained in:
@@ -834,7 +834,7 @@ public:
|
||||
_bFordringMustFallYell = true;
|
||||
if (Creature* tirion = ObjectAccessor::GetCreature(*me, instance->GetGuidData(DATA_HIGHLORD_TIRION_FORDRING)))
|
||||
{
|
||||
tirion->MonsterYell("The Lich King must fall!", LANG_UNIVERSAL, 0);
|
||||
tirion->Yell("The Lich King must fall!", LANG_UNIVERSAL);
|
||||
tirion->PlayDirectSound(17389);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1640,7 +1640,7 @@ public:
|
||||
std::string const& text = sCreatureTextMgr->GetLocalizedChatString(NPC_THE_LICH_KING_LH, 0, 20 + id, 0, LOCALE_enUS);
|
||||
WorldPacket data;
|
||||
ChatHandler::BuildChatPacket(data, CHAT_MSG_MONSTER_WHISPER, LANG_UNIVERSAL, ObjectGuid::Empty, player->GetGUID(), text, CHAT_TAG_NONE, "The Lich King");
|
||||
player->SendPlaySound(17235 + id, true);
|
||||
player->PlayDirectSound(17235 + id);
|
||||
player->SendDirectMessage(&data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user