From ebefaa166fc067fe7df22f0f583c9a89b9070ebb Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Fri, 16 Jul 2021 20:12:11 +0200 Subject: [PATCH] refactor: MonsterText method AzerothCore --- UnitMethods.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UnitMethods.h b/UnitMethods.h index 2e9a673..ce5b21a 100644 --- a/UnitMethods.h +++ b/UnitMethods.h @@ -2337,7 +2337,7 @@ namespace LuaUnit Player* receiver = Eluna::CHECKOBJ(L, 4); bool bossWhisper = Eluna::CHECKVAL(L, 5, false); if (std::string(msg).length() > 0) -#ifdef TRINITY +#ifdef TRINITY || AZEROTHCORE unit->Whisper(msg, (Language)lang, receiver, bossWhisper); #else unit->MonsterWhisper(msg, receiver, bossWhisper); @@ -2358,7 +2358,7 @@ namespace LuaUnit Unit* receiver = Eluna::CHECKOBJ(L, 3, false); bool bossEmote = Eluna::CHECKVAL(L, 4, false); if (std::string(msg).length() > 0) -#ifdef TRINITY +#ifdef TRINITY || AZEROTHCORE unit->TextEmote(msg, receiver, bossEmote); #else unit->MonsterTextEmote(msg, receiver, bossEmote); @@ -2377,7 +2377,7 @@ namespace LuaUnit const char* msg = Eluna::CHECKVAL(L, 2); uint32 language = Eluna::CHECKVAL(L, 3); if (std::string(msg).length() > 0) -#ifdef TRINITY +#ifdef TRINITY || AZEROTHCORE unit->Say(msg, (Language)language, unit); #else unit->MonsterSay(msg, language, unit); @@ -2396,7 +2396,7 @@ namespace LuaUnit const char* msg = Eluna::CHECKVAL(L, 2); uint32 language = Eluna::CHECKVAL(L, 3); if (std::string(msg).length() > 0) -#ifdef TRINITY +#ifdef TRINITY || AZEROTHCORE unit->Yell(msg, (Language)language, unit); #else unit->MonsterYell(msg, language, unit);