From 310b7dd9b8d2e862657d84cc72bb156e0d2ad226 Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 25 Aug 2019 19:37:22 +0200 Subject: Fix an issue that prevents homunculus auto-vaporize on death or skill reset The >80% HP condition is now ignored in the cases the vaporization is forced by the server Signed-off-by: Haru --- src/map/homunculus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/homunculus.h') diff --git a/src/map/homunculus.h b/src/map/homunculus.h index 745c7cd84..b1c21e546 100644 --- a/src/map/homunculus.h +++ b/src/map/homunculus.h @@ -167,7 +167,7 @@ struct homunculus_interface { enum homun_type (*class2type) (int class_); void (*damaged) (struct homun_data *hd); int (*dead) (struct homun_data *hd); - int (*vaporize) (struct map_session_data *sd, enum homun_state flag); + int (*vaporize) (struct map_session_data *sd, enum homun_state state, bool force); int (*delete) (struct homun_data *hd, int emote); int (*checkskill) (struct homun_data *hd, uint16 skill_id); int (*calc_skilltree) (struct homun_data *hd, int flag_evolve); -- cgit v1.2.3-70-g09d2