From 4f04033e97d203f58c34d97f4b87b02b363c6e1d Mon Sep 17 00:00:00 2001 From: Emagi Date: Sun, 25 May 2025 14:02:46 -0400 Subject: [PATCH] Fixed calculating bonuses for items when equipping and unequipping --- source/WorldServer/Commands/Commands.cpp | 4 ++++ source/WorldServer/client.cpp | 1 + 2 files changed, 5 insertions(+) diff --git a/source/WorldServer/Commands/Commands.cpp b/source/WorldServer/Commands/Commands.cpp index 436b09f..46c54ad 100644 --- a/source/WorldServer/Commands/Commands.cpp +++ b/source/WorldServer/Commands/Commands.cpp @@ -7155,6 +7155,8 @@ void Commands::Command_Inventory(Client* client, Seperator* sep, EQ2_RemoteComma client->GetPlayer()->UpdateWeapons(); EQ2Packet* characterSheetPackets = client->GetPlayer()->GetPlayerInfo()->serialize(client->GetVersion()); client->QueuePacket(characterSheetPackets); + + client->GetPlayer()->CalculateBonuses(); } else if (sep->arg[1][0] && strncasecmp("unpack", sep->arg[0], 6) == 0 && sep->IsNumber(1)) { @@ -11757,6 +11759,8 @@ void Commands::Command_Attune_Inv(Client* client, Seperator* sep) { if(outapp) client->QueuePacket(outapp); } + + client->GetPlayer()->CalculateBonuses(); } } diff --git a/source/WorldServer/client.cpp b/source/WorldServer/client.cpp index 4c3a9c8..898b6c9 100644 --- a/source/WorldServer/client.cpp +++ b/source/WorldServer/client.cpp @@ -8066,6 +8066,7 @@ void Client::UnequipItem(int16 index, sint32 bag_id, int8 to_slot, int8 appearan } GetPlayer()->UpdateWeapons(); + GetPlayer()->CalculateBonuses(); EQ2Packet* characterSheetPackets = GetPlayer()->GetPlayerInfo()->serialize(GetVersion()); QueuePacket(characterSheetPackets); }