Skip to content

Commit

Permalink
fix: revert items order with convergence fusion
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Jan 18, 2024
1 parent 7676f66 commit d7ea2af
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/server/network/protocol/protocolgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5217,7 +5217,12 @@ void ProtocolGame::sendForgeResult(ForgeAction_t actionType, uint16_t leftItemId
msg.addByte(static_cast<uint8_t>(actionType));
msg.addByte(convergence);

msg.addByte(convergence ? true : success);
if (convergence && actionType == ForgeAction_t::FUSION) {
success = true;
std::swap(leftItemId, rightItemId);
}

msg.addByte(success);

msg.add<uint16_t>(leftItemId);
msg.addByte(leftTier);
Expand Down

0 comments on commit d7ea2af

Please sign in to comment.