diff options
author | shennetsind <ind@henn.et> | 2013-05-15 17:14:26 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-05-15 17:14:26 -0300 |
commit | d6770e2b1611f911c917ba8533732c5cfbbe8b10 (patch) | |
tree | e520fdeaa110e9fdd6f0bb46ee6e965f1abb0adc | |
parent | 0aee4fd57f2f4135361f4182a08a98cf52ed9d10 (diff) | |
download | hercules-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>
-rw-r--r-- | src/map/unit.c | 6 |
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 ) |