fix missing stuff

This commit is contained in:
55Honey
2022-06-04 20:11:06 +02:00
parent af59e0dc90
commit c616143557
2 changed files with 9 additions and 8 deletions

View File

@@ -235,7 +235,6 @@ namespace LuaGameObject
return 0;
}
/**
* Adds an [Item] to the loot of a [GameObject]
*

View File

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