summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2015-05-26 05:13:17 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2015-05-26 05:13:17 +0800
commitcd8e68ba9e18a6be416ecc4197b119eb9425fc23 (patch)
tree8721f1f332120afa9130af5ae387995a7a128b59 /src/map/battle.c
parent027f124cbb96bb99d00bc31ad51345024edadf66 (diff)
downloadhercules-cd8e68ba9e18a6be416ecc4197b119eb9425fc23.tar.gz
hercules-cd8e68ba9e18a6be416ecc4197b119eb9425fc23.tar.bz2
hercules-cd8e68ba9e18a6be416ecc4197b119eb9425fc23.tar.xz
hercules-cd8e68ba9e18a6be416ecc4197b119eb9425fc23.zip
Another batch of corrected skill level check
-Followup@dbaff8bdff2552c94d83e71249ae9e2117f62a72 -Added missing code from previous commit@027f124cbb96bb99d00bc31ad51345024edadf66 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 603db4738..393511d1c 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3368,7 +3368,7 @@ void battle_consume_ammo(TBL_PC*sd, int skill_id, int lv) {
if (!battle_config.arrow_decrement)
return;
- if (skill_id) {
+ if (skill_id && lv) {
qty = skill->get_ammo_qty(skill_id, lv);
if (!qty) qty = 1;
}