mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
feat: replace getLevel with GetLevel (#115)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user