summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorhemagx <ibrahem.h.basyone@gmail.com>2016-10-22 02:28:16 +0200
committerhemagx <ibrahem.h.basyone@gmail.com>2016-10-22 02:28:16 +0200
commitf072f3c9771cf0154f3b207970d86cc857708050 (patch)
tree34579ba5f0b3f71f681489883939d0ac770c7c0a /src/map/script.c
parentd8441a3522797a25b5bcc46d6e5b38adebd0a70b (diff)
parent431b8aad001d959225aaa41b8d0a80c4d5526229 (diff)
downloadhercules-f072f3c9771cf0154f3b207970d86cc857708050.tar.gz
hercules-f072f3c9771cf0154f3b207970d86cc857708050.tar.bz2
hercules-f072f3c9771cf0154f3b207970d86cc857708050.tar.xz
hercules-f072f3c9771cf0154f3b207970d86cc857708050.zip
Merge pull request #1458 from dastgir/2016-1_summoner
Introduces Summoner Class
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c7
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;
}