Core/Guilds: Prevent guild bank packet contents update hack from interfering with buying new bank tabs

Closes #30277

(cherry picked from commit e3d0b803d7)
This commit is contained in:
Shauren
2024-12-06 21:24:50 +01:00
committed by Ovahlord
parent a28bdcba23
commit 4b9bb32cdc
2 changed files with 8 additions and 5 deletions

View File

@@ -260,10 +260,7 @@ void WorldSession::HandleGuildBankQueryTab(WorldPackets::Guild::GuildBankQueryTa
if (GetPlayer()->GetGameObjectIfCanInteractWith(packet.Banker, GAMEOBJECT_TYPE_GUILD_BANK))
if (Guild* guild = GetPlayer()->GetGuild())
guild->SendBankList(this, packet.Tab, true /*packet.FullUpdate*/);
// HACK: client doesn't query entire tab content if it had received SMSG_GUILD_BANK_LIST in this session
// but we broadcast bank updates to entire guild when *ANYONE* changes anything, incorrectly initializing clients
// tab content with only data for that change
guild->SendBankList(this, packet.Tab, packet.FullUpdate);
}
void WorldSession::HandleGuildBankDepositMoney(WorldPackets::Guild::GuildBankDepositMoney& packet)