summaryrefslogtreecommitdiff
path: root/src/map/status.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/status.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/status.c')
-rw-r--r--src/map/status.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 8ee4d5780..cbabda234 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1046,7 +1046,9 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, int
case NJ_KIRIKAGE:
break;
default:
- return 0;
+ //Non players can use all skills while hidden.
+ if (!skill_num || src->type == BL_PC)
+ return 0;
}
if (sc->option&OPTION_CHASEWALK && skill_num != ST_CHASEWALK)
return 0;
@@ -5047,7 +5049,7 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
if (map_flag_gvg(bl->m)) val4 *= 5;
break;
case SC_CLOAKING:
- if (!sd) //Monsters should be able to walk no penalties. [Skotlex]
+ if (!sd) //Monsters should be able to walk with no penalties. [Skotlex]
val1 = 10;
val2 = tick>0?tick:60000; //SP consumption rate.
val3 = 0;
@@ -5057,11 +5059,12 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
val3+= 70+val1*3; //Speed adjustment without a wall.
//With a wall, it is val3 +25.
//val4&1 signals the presence of a wall.
- //val4&2 signals eternal cloaking (not cancelled on attack) [Skotlex]
+ //val4&2 makes cloak not end on normal attacks [Skotlex]
+ //val4&4 makes cloak not end on using skills
if (bl->type == BL_PC) //Standard cloaking.
- val4 |= battle_config.pc_cloak_check_type&3;
+ val4 |= battle_config.pc_cloak_check_type&7;
else
- val4 |= battle_config.monster_cloak_check_type&3;
+ val4 |= battle_config.monster_cloak_check_type&7;
break;
case SC_SIGHT: /* サイト/ルアフ */
case SC_RUWACH: