Fixed pet eggs in the cashshop (#5864)
Fixes #5863 Thanks to @admkakaroto
This commit is contained in:
parent
7a1ea09eb1
commit
b96a87262c
@ -576,7 +576,6 @@ bool cashshop_buylist( struct map_session_data* sd, uint32 kafrapoints, int n, s
|
||||
if (!id)
|
||||
continue;
|
||||
|
||||
if (!pet_create_egg(sd, nameid)) {
|
||||
unsigned short get_amt = quantity;
|
||||
|
||||
if (id->flag.guid || !itemdb_isstackable2(id))
|
||||
@ -605,6 +604,7 @@ bool cashshop_buylist( struct map_session_data* sd, uint32 kafrapoints, int n, s
|
||||
#endif
|
||||
|
||||
for (uint32 j = 0; j < quantity; j += get_amt) {
|
||||
if( !pet_create_egg( sd, nameid ) ){
|
||||
struct item item_tmp = { 0 };
|
||||
|
||||
item_tmp.nameid = nameid;
|
||||
@ -624,6 +624,7 @@ bool cashshop_buylist( struct map_session_data* sd, uint32 kafrapoints, int n, s
|
||||
clif_cashshop_result( sd, nameid, CASHSHOP_RESULT_ERROR_RUNE_OVERCOUNT );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
clif_cashshop_result( sd, nameid, CASHSHOP_RESULT_SUCCESS );
|
||||
|
||||
@ -646,7 +647,6 @@ bool cashshop_buylist( struct map_session_data* sd, uint32 kafrapoints, int n, s
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user