diff options
author | Haru <haru@dotalux.com> | 2018-04-08 14:48:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-08 14:48:53 +0200 |
commit | 32968fa05ddcdaa8764d84bcb8065c05763e5f8e (patch) | |
tree | 83a3fce541559808e828505ac64dd136822b6a18 /src/map/clif.c | |
parent | 81e1ace120e191f2d218d5a735c93192d2dfbea4 (diff) | |
parent | 4021436d86068b7d50ffead89aa15880ce05abf2 (diff) | |
download | hercules-32968fa05ddcdaa8764d84bcb8065c05763e5f8e.tar.gz hercules-32968fa05ddcdaa8764d84bcb8065c05763e5f8e.tar.bz2 hercules-32968fa05ddcdaa8764d84bcb8065c05763e5f8e.tar.xz hercules-32968fa05ddcdaa8764d84bcb8065c05763e5f8e.zip |
Merge pull request #2002 from Asheraf/homunaffix
add missing homunculus autofeed update on change map
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 63f44dd85..60f4b18c0 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -9810,6 +9810,13 @@ void clif_parse_LoadEndAck(int fd, struct map_session_data *sd) { clif->partyinvitationstate(sd); clif->equpcheckbox(sd); #endif + +#if PACKETVER_MAIN_NUM >= 20171025 || PACKETVER_RE_NUM >= 20170920 + if (sd->hd != NULL) + clif->zc_config(sd, CZ_CONFIG_HOMUNCULUS_AUTOFEEDING, sd->hd->homunculus.autofeed); + else + clif->zc_config(sd, CZ_CONFIG_HOMUNCULUS_AUTOFEEDING, false); +#endif if( (battle_config.bg_flee_penalty != 100 || battle_config.gvg_flee_penalty != 100) && (map_flag_gvg2(sd->state.pmap) || map_flag_gvg2(sd->bl.m) || map->list[sd->state.pmap].flag.battleground || map->list[sd->bl.m].flag.battleground) ) |