Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Nov 14, 2022
1 parent 41f06bd commit 18a01b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,8 @@ function LootReserve.Server:PrepareLootTracking()

-- Announce reserves when a group loot roll starts
LootReserve:RegisterEvent("START_LOOT_ROLL", function(rollID)
if not self.CurrentSession then return end

local link = GetLootRollItemLink(rollID);
if not link then return end

Expand Down
3 changes: 2 additions & 1 deletion Windows/ServerWindow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@
players[i] = LootReserve:ColoredPlayer(players[i]);
end
end
local item = self:GetParent().Item;
local disenchanter = LootReserve.Server:GetDisenchanter();
local menu =
{
Expand Down Expand Up @@ -475,7 +476,7 @@
table.insert(menu, 3, {
text = format(disenchanter and "Send to Disenchanter: %s" or "Send to Disenchanter", disenchanter and LootReserve:ColoredPlayer(disenchanter)),
disabled = not disenchanter,
func = function() LootReserve.Server:FinishRollRequest(self:GetParent().Item, nil, true); LootReserve.Server:RecordDisenchant(self:GetParent().Item, disenchanter); end,
func = function() LootReserve.Server:FinishRollRequest(self:GetParent().Item, nil, true); LootReserve.Server:RecordDisenchant(item, disenchanter); end,
});
end
if LootReserve:IsLootingItem(self:GetParent().Item) then
Expand Down

0 comments on commit 18a01b6

Please sign in to comment.