diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-20 15:14:51 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-20 15:14:51 +0000 |
commit | ecfcb989bf2fd07a355714ce588a6ab7e890db76 (patch) | |
tree | fc1a64c5a65471328cf845f922c2ef5e26b75648 /src/map/skill.c | |
parent | 334f81bebe92b6014d4b21607de5539d99af0cf1 (diff) | |
download | hercules-ecfcb989bf2fd07a355714ce588a6ab7e890db76.tar.gz hercules-ecfcb989bf2fd07a355714ce588a6ab7e890db76.tar.bz2 hercules-ecfcb989bf2fd07a355714ce588a6ab7e890db76.tar.xz hercules-ecfcb989bf2fd07a355714ce588a6ab7e890db76.zip |
- Implemented SL_SUPERNOVICE erasing the death record 1% of the casts.
- Implemented current exp being capped to the exp required to level up from the previous level when we are at max level (required for some S. Novice buffs)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11764 54d463be-8e91-2dee-dedb-b68131a5f0ec
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)); |