From c616143557a39a98c214dcc5ed7213bb96a871f4 Mon Sep 17 00:00:00 2001 From: 55Honey <71938210+55Honey@users.noreply.github.com> Date: Sat, 4 Jun 2022 20:11:06 +0200 Subject: [PATCH] fix missing stuff --- src/LuaEngine/GameObjectMethods.h | 1 - src/LuaEngine/ObjectMethods.h | 16 +++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/LuaEngine/GameObjectMethods.h b/src/LuaEngine/GameObjectMethods.h index 0c9b2f1..0ffbf2c 100644 --- a/src/LuaEngine/GameObjectMethods.h +++ b/src/LuaEngine/GameObjectMethods.h @@ -235,7 +235,6 @@ namespace LuaGameObject return 0; } - /** * Adds an [Item] to the loot of a [GameObject] * diff --git a/src/LuaEngine/ObjectMethods.h b/src/LuaEngine/ObjectMethods.h index 768710d..d96fbdf 100644 --- a/src/LuaEngine/ObjectMethods.h +++ b/src/LuaEngine/ObjectMethods.h @@ -52,16 +52,18 @@ namespace LuaObject } /** - * Returns 'true' if the [Object] is a player, 'false' otherwise. - * - * @return bool IsPlayer - */ - int IsPlayer(lua_State* L, Player* player) + * Returns 'true' if the [Object] is a player, 'false' otherwise. + * + * @return bool IsPlayer + */ + int IsPlayer(lua_State* L, Object* obj) { - Eluna::Push(L, player->IsPlayer()); +#ifdef AZEROTHCORE //AC-only + Eluna::Push(L, obj->IsPlayer()); +#endif return 1; } - + /** * Returns the data at the specified index, casted to a signed 32-bit integer. *