summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-05-19 14:04:54 -0300
committerpanikon <panikon@zoho.com>2014-05-19 14:04:54 -0300
commit4c8d773d72ae134f7cc4d43861104ecd9f4ae134 (patch)
treec67ba3592c4f2bdac7a321d21236398cb9cc85ca /src/map/status.c
parentdfc1165e002487ba5fcb8945676381f1709ec469 (diff)
downloadhercules-4c8d773d72ae134f7cc4d43861104ecd9f4ae134.tar.gz
hercules-4c8d773d72ae134f7cc4d43861104ecd9f4ae134.tar.bz2
hercules-4c8d773d72ae134f7cc4d43861104ecd9f4ae134.tar.xz
hercules-4c8d773d72ae134f7cc4d43861104ecd9f4ae134.zip
Fixed issue 8182
http://hercules.ws/board/tracker/issue-8182-cloaking-on-ice-wall/ Fixed minor typo on script_commands
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 316dce8e6..e76cd86a3 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -6944,11 +6944,7 @@ int status_change_start(struct block_list *src, struct block_list *bl, enum sc_t
return 0;
break;
case SC_CLOAKING:
- //Avoid cloaking with no wall and low skill level. [Skotlex]
- //Due to the cloaking card, we have to check the wall versus to known
- //skill level rather than the used one. [Skotlex]
- //if (sd && val1 < 3 && skill_check_cloaking(bl,NULL))
- if( sd && pc->checkskill(sd, AS_CLOAKING) < 3 && !skill->check_cloaking(bl,NULL) )
+ if( !skill->can_cloak(sd, bl) )
return 0;
break;
case SC_MODECHANGE: