summaryrefslogtreecommitdiff
path: root/src/map/homunculus.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-08-25 19:37:22 +0200
committerHaru <haru@dotalux.com>2019-08-26 01:22:08 +0200
commit310b7dd9b8d2e862657d84cc72bb156e0d2ad226 (patch)
tree7c86b960608c6a8209d73fc8a25e7108c896059f /src/map/homunculus.h
parent7c25f7ea7c575cfdb025a688a635b89ef5fae1c1 (diff)
downloadhercules-310b7dd9b8d2e862657d84cc72bb156e0d2ad226.tar.gz
hercules-310b7dd9b8d2e862657d84cc72bb156e0d2ad226.tar.bz2
hercules-310b7dd9b8d2e862657d84cc72bb156e0d2ad226.tar.xz
hercules-310b7dd9b8d2e862657d84cc72bb156e0d2ad226.zip
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 <haru@dotalux.com>
Diffstat (limited to 'src/map/homunculus.h')
-rw-r--r--src/map/homunculus.h2
1 files changed, 1 insertions, 1 deletions
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);