From 2b40c9f93ff29d70a2952b1217e22e9afb04cd8e Mon Sep 17 00:00:00 2001 From: Inkfish Date: Fri, 12 Jun 2009 11:54:18 +0000 Subject: 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 --- Changelog-Trunk.txt | 1 + src/map/battle.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 8a73f96cc..caba021f2 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. 09/06/12 + * Fixed "arrow_atk" flag never being reset results in arrow consumption on itemskills and autocasts. (bugreport:3233) [Inkfish] * Fixed itemskill not bypassing Silence, SteelBody, Berserk and the like. (bugreport:3232) [Inkfish] * Fury and Asura no longer disable SP regen on any other classes than Monk/Champion.(bugreport:3200) [Inkfish] 09/06/11 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( -- cgit v1.2.3-70-g09d2