summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-05-15 17:14:26 -0300
committershennetsind <ind@henn.et>2013-05-15 17:14:26 -0300
commitd6770e2b1611f911c917ba8533732c5cfbbe8b10 (patch)
treee520fdeaa110e9fdd6f0bb46ee6e965f1abb0adc /src
parent0aee4fd57f2f4135361f4182a08a98cf52ed9d10 (diff)
downloadhercules-d6770e2b1611f911c917ba8533732c5cfbbe8b10.tar.gz
hercules-d6770e2b1611f911c917ba8533732c5cfbbe8b10.tar.bz2
hercules-d6770e2b1611f911c917ba8533732c5cfbbe8b10.tar.xz
hercules-d6770e2b1611f911c917ba8533732c5cfbbe8b10.zip
Fixed Bug #7244
http://hercules.ws/board/tracker/issue-7244-consumable-items-consuming-with-no-effect/ Special Thanks to Xgear <3 Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r--src/map/unit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 0c241f2f0..a05be7ea0 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1180,9 +1180,9 @@ int unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill_id, ui
sd->skill_id_old = skill_id;
sd->skill_lv_old = skill_lv;
break;
- }
- if (!skill->check_condition_castbegin(sd, skill_id, skill_lv))
- return 0;
+ }
+ if ( sd->skillitem != skill_id && !skill->check_condition_castbegin(sd, skill_id, skill_lv) )
+ return 0;
}
if( src->type == BL_MOB )