diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-22 03:04:46 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-22 03:04:46 +0200 |
commit | 0f8a2df4dd40d522a69260b4d110d0ea2c14ba2a (patch) | |
tree | 830179f43e5204e2598b7a7ffa68a2aa57376c90 /src | |
parent | 527c5a20676780954567d6a791f240933afde7f2 (diff) | |
download | hercules-0f8a2df4dd40d522a69260b4d110d0ea2c14ba2a.tar.gz hercules-0f8a2df4dd40d522a69260b4d110d0ea2c14ba2a.tar.bz2 hercules-0f8a2df4dd40d522a69260b4d110d0ea2c14ba2a.tar.xz hercules-0f8a2df4dd40d522a69260b4d110d0ea2c14ba2a.zip |
Show guild notice after rate modifier messages
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 3f9cc2659..a580d6464 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -10938,11 +10938,6 @@ static void clif_parse_LoadEndAck(int fd, struct map_session_data *sd) } else { sd->state.warp_clean = 1; } - - if (sd->guild != NULL && ((battle_config.guild_notice_changemap == 1 && sd->state.changemap != 0) - || battle_config.guild_notice_changemap == 2)) { - clif->guild_notice(sd, sd->guild); - } } bool change_map = (sd->state.changemap != 0); @@ -11033,12 +11028,21 @@ static void clif_parse_LoadEndAck(int fd, struct map_session_data *sd) clif->show_modifiers(sd); } - // Init guild aura. - if (sd->state.gmaster_flag != 0) { - guild->aura_refresh(sd, GD_LEADERSHIP, guild->checkskill(sd->guild, GD_LEADERSHIP)); - guild->aura_refresh(sd, GD_GLORYWOUNDS, guild->checkskill(sd->guild, GD_GLORYWOUNDS)); - guild->aura_refresh(sd, GD_SOULCOLD, guild->checkskill(sd->guild, GD_SOULCOLD)); - guild->aura_refresh(sd, GD_HAWKEYES, guild->checkskill(sd->guild, GD_HAWKEYES)); + if (sd->guild != NULL) { + // Show guild notice. + if ((battle_config.guild_notice_changemap == 1 && change_map) + || battle_config.guild_notice_changemap == 2 + || first_time) { + clif->guild_notice(sd, sd->guild); + } + + // Init guild aura. + if (sd->state.gmaster_flag != 0) { + guild->aura_refresh(sd, GD_LEADERSHIP, guild->checkskill(sd->guild, GD_LEADERSHIP)); + guild->aura_refresh(sd, GD_GLORYWOUNDS, guild->checkskill(sd->guild, GD_GLORYWOUNDS)); + guild->aura_refresh(sd, GD_SOULCOLD, guild->checkskill(sd->guild, GD_SOULCOLD)); + guild->aura_refresh(sd, GD_HAWKEYES, guild->checkskill(sd->guild, GD_HAWKEYES)); + } } if (sd->state.vending != 0) { // Character is vending. @@ -11063,10 +11067,6 @@ static void clif_parse_LoadEndAck(int fd, struct map_session_data *sd) clif->weather_check(sd); - // This should be displayed last. - if (sd->guild != NULL && first_time) - clif->guild_notice(sd, sd->guild); - // For automatic triggering of NPCs after map loading. (So you don't need to walk 1 step first.) if (map->getcell(sd->bl.m, &sd->bl, sd->bl.x, sd->bl.y, CELL_CHKNPC) != 0) npc->touch_areanpc(sd, sd->bl.m, sd->bl.x, sd->bl.y); |