mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 10:00:28 +00:00
refactor(Core/Unit): clean MonsterText methods (#6957)
This commit is contained in:
@@ -1249,7 +1249,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
creature->MonsterSay(args, LANG_UNIVERSAL, nullptr);
|
||||
creature->Say(args, LANG_UNIVERSAL);
|
||||
|
||||
// make some emotes
|
||||
char lastchar = args[strlen(args) - 1];
|
||||
@@ -1284,7 +1284,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
creature->MonsterTextEmote(args, 0);
|
||||
creature->TextEmote(args);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1346,7 +1346,7 @@ public:
|
||||
if (handler->HasLowerSecurity(receiver, ObjectGuid::Empty))
|
||||
return false;
|
||||
|
||||
creature->MonsterWhisper(text, receiver);
|
||||
creature->Whisper(text, LANG_UNIVERSAL, receiver);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1363,7 +1363,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
creature->MonsterYell(args, LANG_UNIVERSAL, nullptr);
|
||||
creature->Yell(args, LANG_UNIVERSAL, nullptr);
|
||||
|
||||
// make an emote
|
||||
creature->HandleEmoteCommand(EMOTE_ONESHOT_SHOUT);
|
||||
|
||||
Reference in New Issue
Block a user