diff --git a/UnitMethods.h b/UnitMethods.h index f490daa..567e85b 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 +#if defined(TRINITY) || defined(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 +#if defined(TRINITY) || defined(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 +#if defined(TRINITY) || defined(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 +#if defined(TRINITY) || defined(AZEROTHCORE) unit->Yell(msg, (Language)language, unit); #else unit->MonsterYell(msg, language, unit);