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. *