summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-05-04 16:00:54 -0300
committershennetsind <ind@henn.et>2013-05-04 16:00:54 -0300
commitad9a13be6ef115de1d5e124283a1d63a0bc5cd4d (patch)
tree71cd5f4e1661bb23f833de3649f74a1f420ee201 /src/map/script.c
parentc5986ba47dbd5034018ab288c39feee7ff5d7d1f (diff)
downloadhercules-ad9a13be6ef115de1d5e124283a1d63a0bc5cd4d.tar.gz
hercules-ad9a13be6ef115de1d5e124283a1d63a0bc5cd4d.tar.bz2
hercules-ad9a13be6ef115de1d5e124283a1d63a0bc5cd4d.tar.xz
hercules-ad9a13be6ef115de1d5e124283a1d63a0bc5cd4d.zip
Fixed Bug #7210
http://hercules.ws/board/tracker/issue-7210-itemskill-command-does-not-check-for-required-items/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 250ffeb93..61996b414 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -8260,7 +8260,7 @@ BUILDIN(itemskill) {
lv = script_getnum(st,3);
if( !script_hasdata(st, 4) ) {
- if( !skill->check_condition_castbegin(sd,id,lv) )
+ if( !skill->check_condition_castbegin(sd,id,lv) || !skill->check_condition_castend(sd,id,lv) )
return true;
}