Eluna add get expansion

This commit is contained in:
Rochet2
2014-04-12 23:40:15 +03:00
committed by Foereaper
parent bbb968fbeb
commit f013e2a9fa
2 changed files with 17 additions and 0 deletions

View File

@@ -30,6 +30,22 @@ namespace LuaGlobalFunctions
return 1;
}
int GetCoreExpansion(lua_State* L)
{
#ifdef CLASSIC
sEluna->Push(L, 0);
#elif defined(TBC)
sEluna->Push(L, 1);
#elif defined(WOTLK)
sEluna->Push(L, 2);
#elif defined(CATA)
sEluna->Push(L, 3);
#else
sEluna->Push(L);
#endif
return 1;
}
int GetQuest(lua_State* L)
{
uint32 questId = sEluna->CHECKVAL<uint32>(L, 1);