From 7803b4e0d437681aa09113b5240363d03d85a1b8 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 8 Nov 2013 16:31:26 -0200 Subject: Fixed 5 Homun Bugs 1. Homun cooldowns are no longer reset upon being vaporized. 2. Call Homun now displays the skill title above the char upon success. 3. Homuns that have been out of owners sight for over 3 seconds will now be teleport back to master. 4. pc_jobchange now correctly vaporizes the homun. 5. New homunculus now spawn with full health. Special Thanks to kyeme/Beret for all the information and official server testing. Signed-off-by: shennetsind --- src/map/homunculus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map/homunculus.c') diff --git a/src/map/homunculus.c b/src/map/homunculus.c index 0a162958a..7ab471b9d 100644 --- a/src/map/homunculus.c +++ b/src/map/homunculus.c @@ -755,9 +755,11 @@ bool homunculus_create(struct map_session_data *sd, struct s_homunculus *hom) { unit->calc_pos(&hd->bl, sd->bl.x, sd->bl.y, sd->ud.dir); hd->bl.x = hd->ud.to_x; hd->bl.y = hd->ud.to_y; - + hd->masterteleport_timer = 0; + map->addiddb(&hd->bl); status_calc_homunculus(hd,SCO_FIRST); + status_percent_heal(&hd->bl, 100, 100); hd->hungry_timer = INVALID_TIMER; return true; -- cgit v1.2.3-60-g2f50