summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-12 11:54:18 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-12 11:54:18 +0000
commit2b40c9f93ff29d70a2952b1217e22e9afb04cd8e (patch)
treeb8f59e86a204fb9af178f0982278cf504e0f7a96 /src/map/battle.c
parent0d09d414e79a04be1ff1b10253953a6fc06559d3 (diff)
downloadhercules-2b40c9f93ff29d70a2952b1217e22e9afb04cd8e.tar.gz
hercules-2b40c9f93ff29d70a2952b1217e22e9afb04cd8e.tar.bz2
hercules-2b40c9f93ff29d70a2952b1217e22e9afb04cd8e.tar.xz
hercules-2b40c9f93ff29d70a2952b1217e22e9afb04cd8e.zip
Fixed "arrow_atk" flag never being reset results in arrow consumption on itemskills and autocasts. (bugreport:3233)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13884 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index d55c53bba..73bf76ce8 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -850,6 +850,8 @@ void battle_consume_ammo(TBL_PC*sd, int skill, int lv)
if(sd->equip_index[EQI_AMMO]>=0) //Qty check should have been done in skill_check_condition
pc_delitem(sd,sd->equip_index[EQI_AMMO],qty,0);
+
+ sd->state.arrow_atk = 0;
}
static int battle_range_type(