diff options
author | Guilherme G. Menaldo <guilherme.menaldo@outlook.com> | 2018-10-02 21:52:34 -0300 |
---|---|---|
committer | Guilherme G. Menaldo <guilherme.menaldo@outlook.com> | 2018-10-20 23:53:17 -0300 |
commit | bf54e86c244ca1cd3be9da5fcacb40b406dc970f (patch) | |
tree | bb1c4157dea0d4bae41cc508e1917022ff842dcc /src/map | |
parent | 852c13305f67948531bd0277eb1922dbd02b1f26 (diff) | |
download | hercules-bf54e86c244ca1cd3be9da5fcacb40b406dc970f.tar.gz hercules-bf54e86c244ca1cd3be9da5fcacb40b406dc970f.tar.bz2 hercules-bf54e86c244ca1cd3be9da5fcacb40b406dc970f.tar.xz hercules-bf54e86c244ca1cd3be9da5fcacb40b406dc970f.zip |
Fixes delayed-consume items not being consumed after using Abracadabra/Improvised Song
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 961dda9f5..d11c71b97 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5323,6 +5323,10 @@ static int pc_useitem(struct map_session_data *sd, int n) if(sd->catch_target_class != -1) //Abort pet catching. sd->catch_target_class = -1; + // Removes abracadabra/randomize spell flag for delayed consume items or item doesn't get consumed + if (sd->inventory_data[n]->flag.delay_consume) + sd->state.abra_flag = 0; + amount = sd->status.inventory[n].amount; //Check if the item is to be consumed immediately [Skotlex] if (sd->inventory_data[n]->flag.delay_consume || sd->inventory_data[n]->flag.keepafteruse) |