summaryrefslogtreecommitdiff
path: root/src/map/homunculus.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-08-25 19:38:52 +0200
committerHaru <haru@dotalux.com>2019-08-26 01:22:10 +0200
commit29d5ccb4f6f5d94b2991bae6eeb3bf86987bf21c (patch)
tree7f3697ed7c2ee25a94b85174093b8d0958f60dad /src/map/homunculus.h
parent2d1b14d4b4315bb8705d9c1977343615c708a514 (diff)
downloadhercules-29d5ccb4f6f5d94b2991bae6eeb3bf86987bf21c.tar.gz
hercules-29d5ccb4f6f5d94b2991bae6eeb3bf86987bf21c.tar.bz2
hercules-29d5ccb4f6f5d94b2991bae6eeb3bf86987bf21c.tar.xz
hercules-29d5ccb4f6f5d94b2991bae6eeb3bf86987bf21c.zip
Fix a bug that caused homunculi's HP and SP to be refilled on login
They're now only refilled on homunculus creation 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 b1c21e546..bcbda7e6c 100644
--- a/src/map/homunculus.h
+++ b/src/map/homunculus.h
@@ -189,7 +189,7 @@ struct homunculus_interface {
int (*change_name) (struct map_session_data *sd, const char *name);
bool (*change_name_ack) (struct map_session_data *sd, const char *name, int flag);
int (*db_search) (int key,int type);
- bool (*create) (struct map_session_data *sd, const struct s_homunculus *hom);
+ bool (*create) (struct map_session_data *sd, const struct s_homunculus *hom, bool is_new);
void (*init_timers) (struct homun_data * hd);
bool (*call) (struct map_session_data *sd);
bool (*recv_data) (int account_id, const struct s_homunculus *sh, int flag);