Fixed #1575, cart cannot be changed.

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
This commit is contained in:
Cydh Ramdh 2016-10-09 08:29:16 +07:00
parent cd0b2b2974
commit 19d620575a
2 changed files with 2 additions and 6 deletions

View File

@ -8785,12 +8785,7 @@ bool pc_setcart(struct map_session_data *sd,int type) {
if( !sd->sc.data[SC_PUSH_CART] ) /* first time, so fill cart data */
clif_cartlist(sd);
clif_updatestatus(sd, SP_CARTINFO);
sc_start(&sd->bl,&sd->bl, SC_PUSH_CART, 100, type, -1);
#if PACKETVER > 20120418
clif_efst_status_change(&sd->bl, sd->bl.id, AREA, SI_ON_PUSH_CART, 9999, type, 0, 0);
if( sd->sc.data[SC_PUSH_CART] )/* forcefully update */
sd->sc.data[SC_PUSH_CART]->val1 = type;
#endif
sc_start(&sd->bl, &sd->bl, SC_PUSH_CART, 100, type, 0);
break;
}

View File

@ -8902,6 +8902,7 @@ int status_change_start(struct block_list* src, struct block_list* bl,enum sc_ty
case SC_REUSE_LIMIT_RECALL:
case SC_REUSE_LIMIT_ASPD_POTION:
return 0;
case SC_PUSH_CART:
case SC_COMBO:
case SC_DANCING:
case SC_DEVOTION: