Eluna classic support

This commit is contained in:
Rochet2
2014-03-23 21:48:29 +02:00
committed by Foereaper
parent a04de5b194
commit fee6f42e2d
15 changed files with 184 additions and 59 deletions

View File

@@ -284,6 +284,7 @@ namespace LuaUnit
return 1;
}
#ifndef CLASSIC
int IsOnVehicle(lua_State* L, Unit* unit)
{
#ifdef MANGOS
@@ -293,6 +294,7 @@ namespace LuaUnit
#endif
return 1;
}
#endif
int IsInCombat(lua_State* L, Unit* unit)
{
@@ -581,7 +583,7 @@ namespace LuaUnit
case 4:
type = POWER_ENERGY;
break;
#ifndef TBC
#if (!defined(TBC) && !defined(CLASSIC))
case 6:
type = POWER_RUNIC_POWER;
break;
@@ -620,7 +622,7 @@ namespace LuaUnit
case 4:
type = POWER_ENERGY;
break;
#ifndef TBC
#if (!defined(TBC) && !defined(CLASSIC))
case 6:
type = POWER_RUNIC_POWER;
break;
@@ -829,7 +831,7 @@ namespace LuaUnit
return 1;
}
#ifndef TBC
#if (!defined(TBC) && !defined(CLASSIC))
int GetVehicleKit(lua_State* L, Unit* unit)
{
#ifdef MANGOS
@@ -955,7 +957,7 @@ namespace LuaUnit
case POWER_ENERGY:
unit->SetPower(POWER_ENERGY, amt);
break;
#ifndef TBC
#if (!defined(TBC) && !defined(CLASSIC))
case POWER_RUNIC_POWER:
unit->SetMaxPower(POWER_RUNIC_POWER, amt);
break;
@@ -983,7 +985,7 @@ namespace LuaUnit
case POWER_ENERGY:
unit->SetMaxPower(POWER_ENERGY, amt);
break;
#ifndef TBC
#if (!defined(TBC) && !defined(CLASSIC))
case POWER_RUNIC_POWER:
unit->SetMaxPower(POWER_RUNIC_POWER, amt);
break;
@@ -1085,7 +1087,7 @@ namespace LuaUnit
return 0;
}
#ifndef TBC
#if (!defined(TBC) && !defined(CLASSIC))
int SetFFA(lua_State* L, Unit* unit)
{
bool apply = sEluna->CHECKVAL<bool>(L, 2, true);
@@ -1358,7 +1360,7 @@ namespace LuaUnit
return 0;
}
#ifndef TBC
#if (!defined(TBC) && !defined(CLASSIC))
int MoveJump(lua_State* L, Unit* unit)
{
float x = sEluna->CHECKVAL<float>(L, 2);