summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-09 20:39:06 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-09 20:39:06 +0000
commitfa26ed23b8bb0ae3eeca8a916930d0a8053d3a41 (patch)
tree40823febd05d6836b26e6e93e7a0b411c87159cf /src/map/status.c
parent4bb106036bb644e33fe41340b3ae8f7b603c1210 (diff)
downloadhercules-fa26ed23b8bb0ae3eeca8a916930d0a8053d3a41.tar.gz
hercules-fa26ed23b8bb0ae3eeca8a916930d0a8053d3a41.tar.bz2
hercules-fa26ed23b8bb0ae3eeca8a916930d0a8053d3a41.tar.xz
hercules-fa26ed23b8bb0ae3eeca8a916930d0a8053d3a41.zip
Changed Cloaking to not show an animation when it fails (thanks to Harbin for pointing it out).
And while at it, also tweaked skill_check_cloaking() to use a more readable boolean logic instead of the previous zero-nonzero. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11877 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 1dc109b7f..215c04e72 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -4679,7 +4679,7 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val
//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 && pc_checkskill(sd, AS_CLOAKING) < 3 && !skill_check_cloaking(bl,NULL) )
return 0;
break;
case SC_MODECHANGE: