From b57fd91e6143068d425cf0ef56006bf6f85c16dd Mon Sep 17 00:00:00 2001 From: Axel Cocat Date: Sun, 2 Apr 2023 19:15:44 +0200 Subject: [PATCH] feat: replace getLevel with GetLevel --- src/LuaEngine/AuraMethods.h | 4 ---- src/LuaEngine/UnitMethods.h | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/LuaEngine/AuraMethods.h b/src/LuaEngine/AuraMethods.h index 2e6589f3f1..081da95342 100644 --- a/src/LuaEngine/AuraMethods.h +++ b/src/LuaEngine/AuraMethods.h @@ -54,11 +54,7 @@ namespace LuaAura */ int GetCasterLevel(lua_State* L, Aura* aura) { -#ifdef TRINITY Eluna::Push(L, aura->GetCaster()->GetLevel()); -#else - Eluna::Push(L, aura->GetCaster()->getLevel()); -#endif return 1; } diff --git a/src/LuaEngine/UnitMethods.h b/src/LuaEngine/UnitMethods.h index 2f985a702a..6e26113623 100644 --- a/src/LuaEngine/UnitMethods.h +++ b/src/LuaEngine/UnitMethods.h @@ -836,11 +836,7 @@ namespace LuaUnit */ int GetLevel(lua_State* L, Unit* unit) { -#ifdef TRINITY Eluna::Push(L, unit->GetLevel()); -#else - Eluna::Push(L, unit->getLevel()); -#endif return 1; }