summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorgreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-21 08:46:26 +0000
committergreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-21 08:46:26 +0000
commit5a735a416f33f355babfc150bcedcc220e684255 (patch)
tree0d2df8e8eba046bf84465fbdc4a89bc552a02cdc /src/map/unit.c
parent4f68a6ef917b92df214a12dcef09cffdfa1e80ff (diff)
downloadhercules-5a735a416f33f355babfc150bcedcc220e684255.tar.gz
hercules-5a735a416f33f355babfc150bcedcc220e684255.tar.bz2
hercules-5a735a416f33f355babfc150bcedcc220e684255.tar.xz
hercules-5a735a416f33f355babfc150bcedcc220e684255.zip
Fixed bugreport:5586 SC_CAMOUFLAGE can be removed by using RA_CAMOUFLAGE again, also portals won't warp players under this status.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15902 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index bdabb0152..17ee9f481 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1290,7 +1290,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, short skill_num, sh
} else if( sc->data[SC_CLOAKINGEXCEED] && !(sc->data[SC_CLOAKINGEXCEED]->val4&4) && skill_num != GC_CLOAKINGEXCEED ) {
status_change_end(src,SC_CLOAKINGEXCEED, INVALID_TIMER);
if (!src->prev) return 0;
- } else
+ } else if( sc->data[SC_CAMOUFLAGE] && skill_num != RA_CAMOUFLAGE )
status_change_end(src,SC_CAMOUFLAGE,-1);
if( sc->data[SC_CURSEDCIRCLE_ATKER] ) {
@@ -1418,7 +1418,7 @@ int unit_skilluse_pos2( struct block_list *src, short skill_x, short skill_y, sh
} else if (sc->data[SC_CLOAKINGEXCEED] && !(sc->data[SC_CLOAKINGEXCEED]->val4&4)) {
status_change_end(src, SC_CLOAKINGEXCEED, INVALID_TIMER);
if (!src->prev) return 0;
- } else
+ } else if( sc->data[SC_CAMOUFLAGE] && skill_num != RA_CAMOUFLAGE )
status_change_end(src,SC_CAMOUFLAGE,-1);
if( sc->data[SC_CURSEDCIRCLE_ATKER] ) {