diff options
author | malufett <malufett.eat.my.binaries@gmail.com> | 2013-06-16 23:48:14 -0700 |
---|---|---|
committer | malufett <malufett.eat.my.binaries@gmail.com> | 2013-06-16 23:48:14 -0700 |
commit | 23167727ed5e798f12e2b9140b405b83003186e7 (patch) | |
tree | b7ce2c7b39f663fecc0575f81ec07ca22356b452 /src/map/pc.c | |
parent | f33c54e76be4f3fea6a21aab40fe13feb952239d (diff) | |
download | hercules-23167727ed5e798f12e2b9140b405b83003186e7.tar.gz hercules-23167727ed5e798f12e2b9140b405b83003186e7.tar.bz2 hercules-23167727ed5e798f12e2b9140b405b83003186e7.tar.xz hercules-23167727ed5e798f12e2b9140b405b83003186e7.zip |
Fixed Bug#7381 & #7379
-Reins_of_Mount should now ignore delay(when fail) and sitting condition.
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index ef70aad97..635f48db5 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4295,8 +4295,8 @@ int pc_useitem(struct map_session_data *sd,int n) return 0; /* Items with delayed consume are not meant to work while in mounts except reins of mount(12622) */ - if( sd->inventory_data[n]->flag.delay_consume ) { - if( nameid != ITEMID_REINS_OF_MOUNT && sd->sc.data[SC_ALL_RIDING] ) + if( sd->inventory_data[n]->flag.delay_consume && nameid != ITEMID_REINS_OF_MOUNT ) { + if( sd->sc.data[SC_ALL_RIDING] ) return 0; else if( pc_issit(sd) ) return 0; @@ -4323,7 +4323,8 @@ int pc_useitem(struct map_session_data *sd,int n) } else {// not yet used item (all slots are initially empty) sd->item_delay[i].nameid = nameid; } - sd->item_delay[i].tick = tick + sd->inventory_data[n]->delay; + if( !(nameid == ITEMID_REINS_OF_MOUNT && sd->sc.option&(OPTION_WUGRIDER|OPTION_RIDING|OPTION_DRAGON|OPTION_MADOGEAR)) ) + sd->item_delay[i].tick = tick + sd->inventory_data[n]->delay; } else {// should not happen ShowError("pc_useitem: Exceeded item delay array capacity! (nameid=%d, char_id=%d)\n", nameid, sd->status.char_id); } |