summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-01-25 20:14:19 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-01-25 20:14:19 +0000
commitef55a5fc32a77ebfb0102a090b402c13173821c5 (patch)
tree3c7cf0590385bd741abd7b737516ce05a43f112b /src/map/skill.c
parent7b9b6586aa99a19fe8c1757acdced7bec33e270b (diff)
downloadhercules-ef55a5fc32a77ebfb0102a090b402c13173821c5.tar.gz
hercules-ef55a5fc32a77ebfb0102a090b402c13173821c5.tar.bz2
hercules-ef55a5fc32a77ebfb0102a090b402c13173821c5.tar.xz
hercules-ef55a5fc32a77ebfb0102a090b402c13173821c5.zip
- Implemented monster skill "Full Heal" NPC_ALLHEAL.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13493 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 579d27616..54968bf3d 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -3179,6 +3179,20 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
break;
status_percent_heal(bl, 100, 100);
break;
+ case NPC_ALLHEAL:
+ {
+ int heal;
+ if( status_isimmune(bl) )
+ break;
+ heal = status_percent_heal(bl, 100, 0);
+ clif_skill_nodamage(NULL, bl, AL_HEAL, heal, 1);
+ if( skillid == NPC_ALLHEAL && dstmd )
+ { // Reset Damage Logs
+ memset(dstmd->dmglog, 0, sizeof(dstmd->dmglog));
+ dstmd->tdmg = 0;
+ }
+ }
+ break;
case SA_SUMMONMONSTER:
clif_skill_nodamage(src,bl,skillid,skilllv,1);
if (sd) mob_once_spawn(sd,src->m,src->x,src->y,"--ja--",-1,1,"");