Eluna change definition checks from mangos to tc

This commit is contained in:
Rochet2
2014-06-29 12:26:16 +03:00
committed by Foereaper
parent c2a3ea5043
commit 1f75dc7843
20 changed files with 181 additions and 181 deletions

View File

@@ -102,7 +102,7 @@ namespace LuaItem
int HasQuest(lua_State* L, Item* item)
{
uint32 quest = Eluna::CHECKVAL<uint32>(L, 2);
#ifdef MANGOS
#ifndef TRINITY
Eluna::Push(L, item->HasQuest(quest));
#else
Eluna::Push(L, item->hasQuest(quest));
@@ -217,7 +217,7 @@ namespace LuaItem
int GetOwnerGUID(lua_State* L, Item* item)
{
#ifdef MANGOS
#ifndef TRINITY
Eluna::Push(L, item->GetOwnerGuid());
#else
Eluna::Push(L, item->GetOwnerGUID());
@@ -405,7 +405,7 @@ namespace LuaItem
int SetOwner(lua_State* L, Item* item)
{
Player* player = Eluna::CHECKOBJ<Player>(L, 2);
#ifdef MANGOS
#ifndef TRINITY
item->SetOwnerGuid(player->GET_GUID());
#else
item->SetOwnerGUID(player->GET_GUID());
@@ -483,7 +483,7 @@ namespace LuaItem
int SaveToDB(lua_State* /*L*/, Item* item)
{
#ifdef MANGOS
#ifndef TRINITY
item->SaveToDB();
#else
SQLTransaction trans = SQLTransaction(NULL);