Add Mangos Four support

This commit is contained in:
antz
2018-03-28 19:36:45 +01:00
committed by Antz
parent a481a8bc4b
commit c2f2dd566c
7 changed files with 18 additions and 30 deletions

View File

@@ -1844,7 +1844,7 @@ namespace LuaGlobalFunctions
if (!eObjectMgr->GetCreatureTemplate(entry))
return luaL_argerror(L, 1, "valid CreatureEntry expected");
#ifdef CATA
#if defined(CATA) || defined(MISTS)
eObjectMgr->RemoveVendorItem(entry, item, 1);
#else
eObjectMgr->RemoveVendorItem(entry, item);
@@ -1867,7 +1867,7 @@ namespace LuaGlobalFunctions
auto const & itemlist = items->m_items;
for (auto itr = itemlist.begin(); itr != itemlist.end(); ++itr)
#ifdef CATA
#if defined(CATA) || defined(MISTS)
eObjectMgr->RemoveVendorItem(entry, (*itr)->item, 1);
#else
#ifdef TRINITY