summaryrefslogtreecommitdiff
path: root/src/map/pc.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/pc.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/pc.c')
-rw-r--r--src/map/pc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 5ad01d285..81c503188 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5094,21 +5094,24 @@ int pc_dead(struct map_session_data *sd,struct block_list *src)
if (sd->sc.count && sd->sc.data[SC_KAIZEL].timer != -1)
{
+ j = sd->sc.data[SC_KAIZEL].val1; //Kaizel Lv.
pc_setstand(sd);
+ status_change_clear(&sd->bl,0);
clif_skill_nodamage(&sd->bl,&sd->bl,ALL_RESURRECTION,1,1);
if(sd->special_state.restart_full_recover)
status_percent_heal(&sd->bl, 100, 100);
else
- status_percent_heal(&sd->bl, 10*sd->sc.data[SC_KAIZEL].val1, 0);
+ status_percent_heal(&sd->bl, 10*j, 0);
+ clif_resurrection(&sd->bl, 1);
if(battle_config.pc_invincible_time)
pc_setinvincibletimer(sd, battle_config.pc_invincible_time);
- sc_start(&sd->bl,SkillStatusChangeTable(PR_KYRIE),100,10,skill_get_time2(SL_KAIZEL,sd->sc.data[SC_KAIZEL].val1));
- status_change_end(&sd->bl,SC_KAIZEL,-1);
+ sc_start(&sd->bl,SkillStatusChangeTable(PR_KYRIE),100,10,skill_get_time2(SL_KAIZEL,j));
return 0;
}
if (sd->state.snovice_flag == 4)
{
pc_setstand(sd);
+ status_change_clear(&sd->bl,0);
clif_skill_nodamage(&sd->bl,&sd->bl,ALL_RESURRECTION,1,1);
status_percent_heal(&sd->bl, 100, 100);
clif_resurrection(&sd->bl, 1);