summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-31 16:04:06 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-31 16:04:06 +0000
commit544e0c0ecdf3f4d0c875e19588fbdf848ffdac99 (patch)
tree954b6e828a5c094080a35fa12cee6537097dd560 /src/map/unit.c
parente4da0000fd29b3effb80404bfebdc0f89b8a67f3 (diff)
downloadhercules-544e0c0ecdf3f4d0c875e19588fbdf848ffdac99.tar.gz
hercules-544e0c0ecdf3f4d0c875e19588fbdf848ffdac99.tar.bz2
hercules-544e0c0ecdf3f4d0c875e19588fbdf848ffdac99.tar.xz
hercules-544e0c0ecdf3f4d0c875e19588fbdf848ffdac99.zip
- When Kaizel (or super novice rebirth skill) triggers, you get debuffed now.
- Modified the player_cloak_check_type and monster_cloak_check_type settings. 1 makes it check for walls, 2 makes cloaking NOT end on normal attacks, and 4 makes cloaking NOT end when using skills. The default setting for players is still 1, but for mobs the default has been changed to 4. - Non-players can now use all skills while hidden. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9109 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 38589b8e0..c8e4fb341 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -970,7 +970,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int
ud->skilllv = skill_lv;
if(sc && sc->data[SC_CLOAKING].timer != -1 &&
- !(sc->data[SC_CLOAKING].val4&2) && skill_num != AS_CLOAKING)
+ !(sc->data[SC_CLOAKING].val4&4) && skill_num != AS_CLOAKING)
status_change_end(src,SC_CLOAKING,-1);
if(casttime > 0) {
@@ -1063,7 +1063,7 @@ int unit_skilluse_pos2( struct block_list *src, int skill_x, int skill_y, int sk
ud->skilltarget = 0;
if (sc && sc->data[SC_CLOAKING].timer != -1 &&
- !(sc->data[SC_CLOAKING].val4&2))
+ !(sc->data[SC_CLOAKING].val4&4))
status_change_end(src,SC_CLOAKING,-1);
if(casttime > 0) {