fix build

This commit is contained in:
Kitzunu
2021-08-22 20:49:38 +02:00
parent ebefaa166f
commit fc45c954b9

View File

@@ -2337,7 +2337,7 @@ namespace LuaUnit
Player* receiver = Eluna::CHECKOBJ<Player>(L, 4); Player* receiver = Eluna::CHECKOBJ<Player>(L, 4);
bool bossWhisper = Eluna::CHECKVAL<bool>(L, 5, false); bool bossWhisper = Eluna::CHECKVAL<bool>(L, 5, false);
if (std::string(msg).length() > 0) if (std::string(msg).length() > 0)
#ifdef TRINITY || AZEROTHCORE #if definded(TRINITY) || definded(AZEROTHCORE)
unit->Whisper(msg, (Language)lang, receiver, bossWhisper); unit->Whisper(msg, (Language)lang, receiver, bossWhisper);
#else #else
unit->MonsterWhisper(msg, receiver, bossWhisper); unit->MonsterWhisper(msg, receiver, bossWhisper);
@@ -2358,7 +2358,7 @@ namespace LuaUnit
Unit* receiver = Eluna::CHECKOBJ<Unit>(L, 3, false); Unit* receiver = Eluna::CHECKOBJ<Unit>(L, 3, false);
bool bossEmote = Eluna::CHECKVAL<bool>(L, 4, false); bool bossEmote = Eluna::CHECKVAL<bool>(L, 4, false);
if (std::string(msg).length() > 0) if (std::string(msg).length() > 0)
#ifdef TRINITY || AZEROTHCORE #if definded(TRINITY) || definded(AZEROTHCORE)
unit->TextEmote(msg, receiver, bossEmote); unit->TextEmote(msg, receiver, bossEmote);
#else #else
unit->MonsterTextEmote(msg, receiver, bossEmote); unit->MonsterTextEmote(msg, receiver, bossEmote);
@@ -2377,7 +2377,7 @@ namespace LuaUnit
const char* msg = Eluna::CHECKVAL<const char*>(L, 2); const char* msg = Eluna::CHECKVAL<const char*>(L, 2);
uint32 language = Eluna::CHECKVAL<uint32>(L, 3); uint32 language = Eluna::CHECKVAL<uint32>(L, 3);
if (std::string(msg).length() > 0) if (std::string(msg).length() > 0)
#ifdef TRINITY || AZEROTHCORE #if definded(TRINITY) || definded(AZEROTHCORE)
unit->Say(msg, (Language)language, unit); unit->Say(msg, (Language)language, unit);
#else #else
unit->MonsterSay(msg, language, unit); unit->MonsterSay(msg, language, unit);
@@ -2396,7 +2396,7 @@ namespace LuaUnit
const char* msg = Eluna::CHECKVAL<const char*>(L, 2); const char* msg = Eluna::CHECKVAL<const char*>(L, 2);
uint32 language = Eluna::CHECKVAL<uint32>(L, 3); uint32 language = Eluna::CHECKVAL<uint32>(L, 3);
if (std::string(msg).length() > 0) if (std::string(msg).length() > 0)
#ifdef TRINITY || AZEROTHCORE #if definded(TRINITY) || definded(AZEROTHCORE)
unit->Yell(msg, (Language)language, unit); unit->Yell(msg, (Language)language, unit);
#else #else
unit->MonsterYell(msg, language, unit); unit->MonsterYell(msg, language, unit);