summaryrefslogtreecommitdiff
path: root/src/map/mercenary.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mercenary.c')
-rw-r--r--src/map/mercenary.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/mercenary.c b/src/map/mercenary.c
index 740b8d85e..08a640275 100644
--- a/src/map/mercenary.c
+++ b/src/map/mercenary.c
@@ -218,6 +218,14 @@ void mercenary_damage(struct mercenary_data *md, struct block_list *src, int hp,
clif_mercenary_updatestatus(md->master, SP_HP);
}
+void mercenary_heal(struct mercenary_data *md, int hp, int sp)
+{
+ if( hp )
+ clif_mercenary_updatestatus(md->master, SP_HP);
+ if( sp )
+ clif_mercenary_updatestatus(md->master, SP_SP);
+}
+
int mercenary_dead(struct mercenary_data *md, struct block_list *src)
{
merc_delete(md, 1);