mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-18 15:31:33 +00:00
Fix how Alternate Currency Reclaim and Create works if the player has 0 currency available
This commit is contained in:
parent
b6a01871d8
commit
e304e67cf1
@ -2604,7 +2604,7 @@ void Client::Handle_OP_AltCurrencyReclaim(const EQApplicationPacket *app)
|
|||||||
++iter;
|
++iter;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item_id == 0 || reclaim->count == 0) {
|
if (item_id == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2625,6 +2625,9 @@ void Client::Handle_OP_AltCurrencyReclaim(const EQApplicationPacket *app)
|
|||||||
else {
|
else {
|
||||||
uint32 max_currency = GetAlternateCurrencyValue(reclaim->currency_id);
|
uint32 max_currency = GetAlternateCurrencyValue(reclaim->currency_id);
|
||||||
|
|
||||||
|
if(max_currency == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
/* If you input more than you have currency wise, just give the max of the currency you currently have */
|
/* If you input more than you have currency wise, just give the max of the currency you currently have */
|
||||||
if (reclaim->count > max_currency) {
|
if (reclaim->count > max_currency) {
|
||||||
SummonItem(item_id, max_currency);
|
SummonItem(item_id, max_currency);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user