diff options
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 5d1e33fc0..1726285d1 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -4883,6 +4883,13 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in clif_skill_fail(sd,skillid,0,0); break; } + if (skillid == SL_SUPERNOVICE && dstsd && dstsd->die_counter && !(rand()%100)) + { //Erase death count 1% of the casts + dstsd->die_counter = 0; + pc_setglobalreg(dstsd,"PC_DIE_COUNTER", 0); + clif_misceffect2(bl, 0x152); + //SC_SPIRIT invokes status_calc_pc for us. + } clif_skill_nodamage(src,bl,skillid,skilllv, sc_start4(bl,SC_SPIRIT,100,skilllv,skillid,0,0,skill_get_time(skillid,skilllv))); sc_start(src,SC_SMA,100,skilllv,skill_get_time(SL_SMA,skilllv)); |