mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
refactor(Core/Unit): clean MonsterText methods (#6957)
This commit is contained in:
@@ -804,19 +804,19 @@ public:
|
||||
{
|
||||
case SPELL_GREAT_FEAST:
|
||||
if (BroadcastText const* bct = sObjectMgr->GetBroadcastText(GREAT_FEAST_BROADCAST_TEXT_ID_PREPARE))
|
||||
player->MonsterTextEmote(bct->GetText(loc_idx, player->getGender()).c_str(), player, false);
|
||||
player->TextEmote(bct->GetText(loc_idx, player->getGender()).c_str(), player);
|
||||
break;
|
||||
case SPELL_FISH_FEAST:
|
||||
if (BroadcastText const* bct = sObjectMgr->GetBroadcastText(FISH_FEAST_BROADCAST_TEXT_ID_PREPARE))
|
||||
player->MonsterTextEmote(bct->GetText(loc_idx, player->getGender()).c_str(), player, false);
|
||||
player->TextEmote(bct->GetText(loc_idx, player->getGender()).c_str(), player);
|
||||
break;
|
||||
case SPELL_SMALL_FEAST:
|
||||
if (BroadcastText const* bct = sObjectMgr->GetBroadcastText(SMALL_FEAST_BROADCAST_TEXT_ID_PREPARE))
|
||||
player->MonsterTextEmote(bct->GetText(loc_idx, player->getGender()).c_str(), player, false);
|
||||
player->TextEmote(bct->GetText(loc_idx, player->getGender()).c_str(), player);
|
||||
break;
|
||||
case SPELL_GIGANTIC_FEAST:
|
||||
if (BroadcastText const* bct = sObjectMgr->GetBroadcastText(GIGANTIC_FEAST_BROADCAST_TEXT_ID_PREPARE))
|
||||
player->MonsterTextEmote(bct->GetText(loc_idx, player->getGender()).c_str(), player, false);
|
||||
player->TextEmote(bct->GetText(loc_idx, player->getGender()).c_str(), player);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user