Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: sell items while wearing an imbued version (#1965)
The client filters equipped items locally, so we don't have control over what it's doing, and on retail tibia you can sell imbued items to NPCs, so everything should count as far as the client is concerned. Here's what this PR does, to fix selling items while having one equipped, but also preventing accidental sale of imbued equipment: • We'll send the count of all items to the client, imbued or not. • Client will attempt to sell all the non-equipped ones (assuming "sell equipped" is unchecked). • Server will then sell only the non-imbued ones. This might cause a weird behavior, where you think you can sell 2 crown helmets, but you can only sell 1 (because one of them is imbued), but it's better than the alternative where the user will just simply think they can't sell the thing at all.
- Loading branch information