Fix cmangos (classic) build

This commit is contained in:
Rochet2
2016-11-27 20:53:42 +02:00
parent 4aba0d6da2
commit 67ea403f10
9 changed files with 78 additions and 8 deletions

View File

@@ -121,10 +121,10 @@ namespace LuaCreature
{
Player* player = Eluna::CHECKOBJ<Player>(L, 2);
#ifdef MANGOS
Eluna::Push(L, creature->IsTappedBy(player));
#else
#ifdef TRINITY
Eluna::Push(L, creature->isTappedBy(player));
#else
Eluna::Push(L, creature->IsTappedBy(player));
#endif
return 1;
}
@@ -1102,7 +1102,11 @@ namespace LuaCreature
data.Initialize(SMSG_MOVE_UNSET_HOVER, 8 + 4);
data << creature->GetPackGUID();
data << uint32(0);
#ifdef CMANGOS
creature->SendMessageToSet(data, true);
#else
creature->SendMessageToSet(&data, true);
#endif
#endif
return 0;
}