(LootMethods) - Add roll_winner_guid to GetItems method (#314)

This commit is contained in:
Aldori
2025-09-16 19:10:45 -04:00
committed by GitHub
parent 04ce900383
commit 972879c696

View File

@@ -225,6 +225,7 @@ namespace LuaLoot
* - count: quantity of the item
* - needs_quest: whether the item requires a quest
* - 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
*/
@@ -252,6 +253,9 @@ namespace LuaLoot
Eluna::Push(L, loot->items[i].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);
}