diff options
author | malufett <malufett.eat.my.binaries@gmail.com> | 2014-05-23 13:56:21 +0800 |
---|---|---|
committer | malufett <malufett.eat.my.binaries@gmail.com> | 2014-05-23 13:56:21 +0800 |
commit | 7ed8f7034dba551ebcf0a8e62d3be4a6c90b7e81 (patch) | |
tree | 9a46404a784bba8e98207ebcbebf157277b6e302 /src/map/status.c | |
parent | 3471e840816fb895dbad6870ec48495ef4b398c8 (diff) | |
parent | 95b7bdbf81b839ca49b58dd7cc843aafdb228f09 (diff) | |
download | hercules-7ed8f7034dba551ebcf0a8e62d3be4a6c90b7e81.tar.gz hercules-7ed8f7034dba551ebcf0a8e62d3be4a6c90b7e81.tar.bz2 hercules-7ed8f7034dba551ebcf0a8e62d3be4a6c90b7e81.tar.xz hercules-7ed8f7034dba551ebcf0a8e62d3be4a6c90b7e81.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/map/status.c b/src/map/status.c index 316dce8e6..a1a7e1969 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 (sd && !skill->can_cloak(sd)) return 0; break; case SC_MODECHANGE: |