mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 21:26:23 +00:00
refactor(Core/Unit): clean MonsterText methods (#6957)
This commit is contained in:
@@ -181,7 +181,7 @@ public:
|
||||
break;
|
||||
case EVENT_SPELL_RADIANCE:
|
||||
me->CastSpell((Unit*)nullptr, SPELL_RADIANCE, false);
|
||||
me->MonsterTextEmote(TEXT_RADIATE, 0, true);
|
||||
me->TextEmote(TEXT_RADIATE, nullptr, true);
|
||||
events.RepeatEvent(16000);
|
||||
break;
|
||||
case EVENT_SPELL_HAMMER_RIGHTEOUS:
|
||||
@@ -189,7 +189,7 @@ public:
|
||||
{
|
||||
char buffer[100];
|
||||
sprintf(buffer, "Eadric the Pure targets %s with the Hammer of the Righteous!", target->GetName().c_str());
|
||||
me->MonsterTextEmote(buffer, 0, true);
|
||||
me->TextEmote(buffer, nullptr, true);
|
||||
Talk(TEXT_EADRIC_HAMMER);
|
||||
me->CastSpell(target, SPELL_HAMMER_JUSTICE, true);
|
||||
me->CastSpell(target, SPELL_HAMMER_RIGHTEOUS, false);
|
||||
|
||||
@@ -249,7 +249,7 @@ public:
|
||||
case EVENT_ANNOUNCER_SAY_ZOMBIE:
|
||||
if( pInstance && !summons.empty() )
|
||||
if( Creature* ghoul = pInstance->instance->GetCreature(*summons.begin()) )
|
||||
ghoul->MonsterYell("[Zombie] .... . Brains ....", LANG_UNIVERSAL, 0);
|
||||
ghoul->Yell("[Zombie] .... . Brains ....", LANG_UNIVERSAL);
|
||||
|
||||
break;
|
||||
case EVENT_SPELL_PLAGUE_STRIKE:
|
||||
|
||||
@@ -650,7 +650,7 @@ public:
|
||||
{
|
||||
char buffer[50];
|
||||
sprintf(buffer, "%s is trampled!", me->GetName().c_str());
|
||||
me->MonsterTextEmote(buffer, 0);
|
||||
me->TextEmote(buffer);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -878,7 +878,7 @@ public:
|
||||
{
|
||||
if( Creature* c = instance->GetCreature(NPC_JaraxxusGUID) )
|
||||
{
|
||||
c->MonsterYell("Banished to the Nether!", LANG_UNIVERSAL, 0);
|
||||
c->Yell("Banished to the Nether!", LANG_UNIVERSAL);
|
||||
c->PlayDirectSound(16146, 0);
|
||||
if( Creature* f = instance->GetCreature(NPC_FizzlebangGUID) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user