mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
(LootMethods) - Add roll_winner_guid to GetItems method (#314)
This commit is contained in:
@@ -225,6 +225,7 @@ namespace LuaLoot
|
|||||||
* - count: quantity of the item
|
* - count: quantity of the item
|
||||||
* - needs_quest: whether the item requires a quest
|
* - needs_quest: whether the item requires a quest
|
||||||
* - is_looted: whether the item has been looted
|
* - is_looted: whether the item has been looted
|
||||||
|
* - roll_winner_guid: GUID of the player who won the item roll
|
||||||
*
|
*
|
||||||
* @return table items : array of item tables
|
* @return table items : array of item tables
|
||||||
*/
|
*/
|
||||||
@@ -252,6 +253,9 @@ namespace LuaLoot
|
|||||||
Eluna::Push(L, loot->items[i].is_looted);
|
Eluna::Push(L, loot->items[i].is_looted);
|
||||||
lua_setfield(L, -2, "is_looted");
|
lua_setfield(L, -2, "is_looted");
|
||||||
|
|
||||||
|
Eluna::Push(L, loot->items[i].rollWinnerGUID);
|
||||||
|
lua_setfield(L, -2, "roll_winner_guid");
|
||||||
|
|
||||||
lua_rawseti(L, tbl, i + 1);
|
lua_rawseti(L, tbl, i + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user