From 38ba1eeed3f0648dbcab8e81aae187a7f36e5d13 Mon Sep 17 00:00:00 2001 From: straps-eq Date: Sat, 14 Nov 2026 02:03:59 -0600 Subject: [PATCH] [Bug Fix] Take the platinum before granting guild favor for a donation (#5142) --- zone/client_packet.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index 783fc1c1b..873e88c00 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -17202,11 +17202,14 @@ void Client::Handle_OP_GuildTributeDonatePlat(const EQApplicationPacket *app) auto favor = quantity * RuleI(Guild, TributePlatConversionRate); auto guild = guild_mgr.GetGuildByGuildID(guild_id); if (guild) { + if (quantity == 0 || !TakePlatinum(quantity, false)) { + return; + } + guild->tribute.favor += favor; guild_mgr.UpdateDbGuildFavor(GuildID(), guild->tribute.favor); auto member_favor = guild_mgr.UpdateDbMemberFavor(GuildID(), CharacterID(), favor); - TakePlatinum(quantity, false); SendGuildTributeDonatePlatReply(in, favor); if(PlayerEventLogs::Instance()->IsEventEnabled(PlayerEvent::GUILD_TRIBUTE_DONATE_PLAT)) {