mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
fix missing stuff
This commit is contained in:
@@ -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]
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user