From bbc0a4d68d9b0f1a4354e9d346414a56327c8fbe Mon Sep 17 00:00:00 2001 From: Salja Date: Fri, 8 Aug 2014 21:51:38 +0200 Subject: [PATCH] Update for CMaNGOS Classic PowerType Core change Signed-off-by: Salja --- UnitMethods.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/UnitMethods.h b/UnitMethods.h index 6645279..1c4c83e 100644 --- a/UnitMethods.h +++ b/UnitMethods.h @@ -569,13 +569,8 @@ namespace LuaUnit #endif #endif #ifdef CMANGOS -#if (defined(WOTLK) || defined(TBC)) if (powerType == -1) return unit->GetPowerType(); -#else - if (powerType == -1) - return unit->getPowerType(); -#endif #endif if (powerType < 0 || powerType >= int(MAX_POWERS)) @@ -629,11 +624,7 @@ namespace LuaUnit #endif #endif #ifdef CMANGOS -#if (defined(WOTLK) || defined(TBC)) Eluna::Push(L, unit->GetPowerType()); -#else - Eluna::Push(L, unit->getPowerType()); -#endif #endif return 1; } @@ -958,11 +949,7 @@ namespace LuaUnit #endif #endif #ifdef CMANGOS -#if (defined(WOTLK) || defined(TBC)) unit->SetPowerType((Powers)type); -#else - unit->setPowerType((Powers)type); -#endif #endif return 0; }