mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 13:16:23 +00:00
refactor(Core/Unit): clean MonsterText methods (#6957)
This commit is contained in:
@@ -153,7 +153,7 @@ class boss_archavon : public CreatureScript
|
||||
{
|
||||
char buffer[100];
|
||||
sprintf(buffer, "Archavon the Stone Watcher lunges for %s!", me->GetVictim()->GetName().c_str());
|
||||
me->MonsterTextEmote(buffer, 0);
|
||||
me->TextEmote(buffer);
|
||||
|
||||
DoCastVictim(RAID_MODE(SPELL_STOMP_10, SPELL_STOMP_25));
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
if (!PlayerList.isEmpty())
|
||||
for (Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
|
||||
if (Player* player = i->GetSource())
|
||||
player->MonsterTextEmote("This instance will reset in 15 minutes.", 0, true);
|
||||
player->TextEmote("This instance will reset in 15 minutes.", nullptr, true);
|
||||
}
|
||||
else if (bf->GetTimer() <= (10 * MINUTE * IN_MILLISECONDS) && bf->GetTimer() >= (9 * MINUTE * IN_MILLISECONDS))
|
||||
{
|
||||
@@ -105,7 +105,7 @@ public:
|
||||
if (!PlayerList.isEmpty())
|
||||
for (Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
|
||||
if (Player* player = i->GetSource())
|
||||
player->MonsterTextEmote("This instance is about to reset. Prepare to be removed.", 0, true);
|
||||
player->TextEmote("This instance is about to reset. Prepare to be removed.", nullptr, true);
|
||||
}
|
||||
else if (bf->GetTimer() <= MINUTE * IN_MILLISECONDS)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user