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; return 0;
} }
/** /**
* Adds an [Item] to the loot of a [GameObject] * Adds an [Item] to the loot of a [GameObject]
* *

View File

@@ -52,13 +52,15 @@ namespace LuaObject
} }
/** /**
* Returns 'true' if the [Object] is a player, 'false' otherwise. * Returns 'true' if the [Object] is a player, 'false' otherwise.
* *
* @return bool IsPlayer * @return bool IsPlayer
*/ */
int IsPlayer(lua_State* L, Player* player) int IsPlayer(lua_State* L, Object* obj)
{ {
Eluna::Push(L, player->IsPlayer()); #ifdef AZEROTHCORE //AC-only
Eluna::Push(L, obj->IsPlayer());
#endif
return 1; return 1;
} }