mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
refactor(Core/Unit): clean MonsterText methods (#6957)
This commit is contained in:
@@ -162,7 +162,7 @@ public:
|
||||
caster->CastSpell(target, 52605, true);
|
||||
char buff[100];
|
||||
sprintf(buff, "%s plants the Flag of Ownership in the corpse of %s.", caster->GetName().c_str(), target->GetName().c_str());
|
||||
caster->MonsterTextEmote(buff, caster);
|
||||
caster->TextEmote(buff, caster);
|
||||
haveTarget = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -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