From 71739ecc37b1081ee0a18a04082402c9ca603b7c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 4 Sep 2019 12:33:15 -0300 Subject: When homunculus is not active, it cannot receive EXP. This is a pre-hook, so it tries to send the EXP packet BEFORE checks are conducted. This is a quick-and-dirty solution, as the script have other cases where the EXP gain is cancelled (eg. max level reached). --- src/emap/homunculus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emap/homunculus.c b/src/emap/homunculus.c index df9bafb..23c9ab6 100644 --- a/src/emap/homunculus.c +++ b/src/emap/homunculus.c @@ -19,6 +19,7 @@ int ehomunculus_gainexp_pre(struct homun_data **hdPtr, nullpo_ret(hd); const int exp = *expPtr; - send_homun_exp(hd, exp); + if (hd->homunculus.vaporize == HOM_ST_ACTIVE) + send_homun_exp(hd, exp); return 0; } -- cgit v1.2.3-60-g2f50