From f49effe3403a77b3fb69078465a2906836547041 Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 2 Aug 2006 14:27:17 +0000 Subject: - Updated battle_check_target so that all alchemist summoned mobs can be target by everyone. - Cleaned up skill_check_condition_mob_master_sub, it will now count both total number of summoned mobs and amount that belong to the same type. - Corrected AM_CANNIBALIZE so it will fail if you already have plants of another type out. - Using NPC_SELFDESTRUCTION no longer will make the caster stop walking. - Removed SI_GUILDAURA, and replaced it with SI_LANDENDOW, now Volcano/Deluge/V. Gale will get that funky icon instead. - Changed clif_hominfo to receive both sd and hd as parameters - Some redundancy cleaning in mercenary.c - Moved updating of sd->mercenary.hp from merc_damage to pc_makesavestatus. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8048 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index 16828d87b..b312c796f 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -345,6 +345,10 @@ int pc_makesavestatus(struct map_session_data *sd) memcpy(&sd->status.last_point,&sd->status.save_point,sizeof(sd->status.last_point)); } + if (sd->hd) { //Update Homun HP info + sd->homunculus.hp = sd->hd->battle_status.hp ; + sd->homunculus.sp = sd->hd->battle_status.sp ; + } return 0; } @@ -4752,7 +4756,7 @@ int pc_dead(struct map_session_data *sd,struct block_list *src) if(sd->status.hom_id > 0 && sd->hd) //orn { sd->homunculus.vaporize = 1; - clif_hominfo(sd,0); + clif_hominfo(sd,sd->hd,0); merc_stop_walking(sd->hd, 1) ; merc_stop_attack(sd->hd) ; merc_hom_delete(sd->hd,0); -- cgit v1.2.3-70-g09d2