From 972879c69656f0f73d09d974c6fe55382a677f4d Mon Sep 17 00:00:00 2001 From: Aldori Date: Tue, 16 Sep 2025 19:10:45 -0400 Subject: [PATCH] (LootMethods) - Add roll_winner_guid to GetItems method (#314) --- src/LuaEngine/methods/LootMethods.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/LuaEngine/methods/LootMethods.h b/src/LuaEngine/methods/LootMethods.h index 3d2e548..0b74b1c 100644 --- a/src/LuaEngine/methods/LootMethods.h +++ b/src/LuaEngine/methods/LootMethods.h @@ -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); }