fix: dismiss loot roll popup when any player wins, not only when we win

SMSG_LOOT_ROLL_WON signals the roll contest is over for this slot;
clear pendingLootRollActive_ unconditionally so the popup does not
linger if a different group member wins while we have not yet voted.
This commit is contained in:
Kelsi 2026-03-12 09:00:31 -07:00
parent 7acaa4d301
commit fb8377f3ca

View file

@ -20094,10 +20094,8 @@ void GameHandler::handleLootRollWon(network::Packet& packet) {
winnerName.c_str(), iName.c_str(), rollName, static_cast<int>(rollNum));
addSystemChatMessage(buf);
// Clear pending roll if it was ours
if (pendingLootRollActive_ && winnerGuid == playerGuid) {
pendingLootRollActive_ = false;
}
// Dismiss roll popup — roll contest is over regardless of who won
pendingLootRollActive_ = false;
LOG_INFO("SMSG_LOOT_ROLL_WON: winner=", winnerName, " item=", itemId,
" roll=", rollName, "(", rollNum, ")");
}