mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
feat: add ItemTemplate methods (#84)
This commit is contained in:
@@ -642,6 +642,17 @@ namespace LuaItem
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the [ItemTemplate] for this [Item].
|
||||
*
|
||||
* @return ItemTemplate itemTemplate
|
||||
*/
|
||||
int GetItemTemplate(lua_State* L, Item* item)
|
||||
{
|
||||
Eluna::Push(L, item->GetTemplate());
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the [Player] specified as the owner of the [Item]
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user