mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
[Bug Fix] Fix for sending money via Parcel, then changing your mind (#4552)
This commit is contained in:
parent
b2d0fa6a2f
commit
a49d1446b7
@ -278,6 +278,19 @@ void Client::DoParcelSend(const Parcel_Struct *parcel_in)
|
||||
return;
|
||||
}
|
||||
|
||||
if (parcel_in->money_flag && parcel_in->item_slot != INVALID_INDEX) {
|
||||
Message(
|
||||
Chat::Yellow,
|
||||
fmt::format(
|
||||
"{} tells you, 'I am confused! Do you want to send money or an item?'",
|
||||
merchant->GetCleanName()
|
||||
).c_str()
|
||||
);
|
||||
DoParcelCancel();
|
||||
SendParcelAck();
|
||||
return;
|
||||
}
|
||||
|
||||
auto num_of_parcels = GetParcelCount();
|
||||
if (num_of_parcels >= RuleI(Parcel, ParcelMaxItems)) {
|
||||
SendParcelIconStatus();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user