diff options
author | Dastgir Pojee <dastgirp@gmail.com> | 2016-10-03 19:17:38 +0530 |
---|---|---|
committer | hemagx <ibrahem.h.basyone@gmail.com> | 2016-10-22 02:22:13 +0200 |
commit | 52bd4a502c919e789e8900820423a49a4343b3d7 (patch) | |
tree | 02118d843fa381009928714aefffd71eadfb894d /src/map/script.c | |
parent | f4e8189545642ee0bf87f3da546bddc918682935 (diff) | |
download | hercules-52bd4a502c919e789e8900820423a49a4343b3d7.tar.gz hercules-52bd4a502c919e789e8900820423a49a4343b3d7.tar.bz2 hercules-52bd4a502c919e789e8900820423a49a4343b3d7.tar.xz hercules-52bd4a502c919e789e8900820423a49a4343b3d7.zip |
Implemented SC_BITESCAR:
Cannot be reset by dispell.
Cannot be healed by item/NPC once in BITESCAR.
Heal Skill would end the BiteScar Effect.
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c index d1aee29bf..2a39bc832 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -6721,13 +6721,16 @@ BUILDIN(percentheal) } sd = script->rid2sd(st); - if( sd == NULL ) + if (sd == NULL) return true; #ifdef RENEWAL if( sd->sc.data[SC_EXTREMITYFIST2] ) sp = 0; #endif - pc->percentheal(sd,hp,sp); + if (sd->sc.data[SC_BITESCAR]) { + hp = 0; + } + pc->percentheal(sd, hp, sp); return true; } |