summaryrefslogtreecommitdiff
path: root/src/map/script.c
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/script.c
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/script.c')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 51cf29816..04c985ea4 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -12633,7 +12633,7 @@ static BUILDIN(homunculus_morphembryo)
clif->additem(sd, 0, 0, i);
clif->emotion(&sd->hd->bl, E_SWT);
} else {
- homun->vaporize(sd, HOM_ST_MORPH);
+ homun->vaporize(sd, HOM_ST_MORPH, true);
success = true;
}
} else {