mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
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:
parent
7acaa4d301
commit
fb8377f3ca
1 changed files with 2 additions and 4 deletions
|
|
@ -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, ")");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue