summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-04-08 23:06:08 +0200
committerGitHub <noreply@github.com>2017-04-08 23:06:08 +0200
commitcc8262cc21a8fff9a6b2e9c61372c89f5fa2377e (patch)
treeb74fab4a3eb5033c8515e4c8d1fc8c82c116572e /src/map/pc.c
parent5f3d37c89c60ecc89186fa8d6cba333369a8f4cf (diff)
parent176b7f571307000a8a22cf133041a911127fac5b (diff)
downloadhercules-cc8262cc21a8fff9a6b2e9c61372c89f5fa2377e.tar.gz
hercules-cc8262cc21a8fff9a6b2e9c61372c89f5fa2377e.tar.bz2
hercules-cc8262cc21a8fff9a6b2e9c61372c89f5fa2377e.tar.xz
hercules-cc8262cc21a8fff9a6b2e9c61372c89f5fa2377e.zip
Merge pull request #1663 from Smokexyz/bow-unequip-fix
Unequip arrows when a bow is unequipped. (RE only)
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 9ef7d084f..e9855c16d 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -10035,6 +10035,11 @@ int pc_unequipitem(struct map_session_data *sd,int n,int flag)
status_change_end(&sd->bl, SC_ARMOR_RESIST, INVALID_TIMER);
}
+#ifdef RENEWAL
+ if (battle->bc->bow_unequip_arrow && pos&EQP_ARMS && sd->equip_index[EQI_AMMO] > 0)
+ pc->unequipitem(sd, sd->equip_index[EQI_AMMO], PCUNEQUIPITEM_FORCE);
+#endif
+
if( sd->state.autobonus&pos )
sd->state.autobonus &= ~sd->status.inventory[n].equip; //Check for activated autobonus [Inkfish]