summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
authorGuilherme G. Menaldo <guilherme.menaldo@outlook.com>2018-03-29 01:25:50 -0300
committerGuilherme G. Menaldo <guilherme.menaldo@outlook.com>2018-04-08 10:26:29 -0300
commit57ba23012d78b8bae37953d65831e932d1365283 (patch)
tree28aec1aed5c3112b2fbd6a6800f2c036826f4f5b /src/map/guild.c
parent38527550c17241e1c905f8077f6589413091087e (diff)
downloadhercules-57ba23012d78b8bae37953d65831e932d1365283.tar.gz
hercules-57ba23012d78b8bae37953d65831e932d1365283.tar.bz2
hercules-57ba23012d78b8bae37953d65831e932d1365283.tar.xz
hercules-57ba23012d78b8bae37953d65831e932d1365283.zip
Allow guild skills cooldown to continue when logged out
Diffstat (limited to 'src/map/guild.c')
-rw-r--r--src/map/guild.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index 11609ec81..0d6a08e59 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -551,7 +551,7 @@ int guild_recv_info(const struct guild *sg)
if ((sd = map->nick2sd(sg->master)) != NULL) {
//If the guild master is online the first time the guild_info is received,
//that means he was the first to join, so apply guild skill blocking here.
- if( battle_config.guild_skill_relog_delay )
+ if( battle_config.guild_skill_relog_delay == 1)
guild->block_skill(sd, 300000);
//Also set the guild master flag.
@@ -759,7 +759,7 @@ void guild_member_joined(struct map_session_data *sd)
// set the Guild Master flag
sd->state.gmaster_flag = 1;
// prevent Guild Skills from being used directly after relog
- if( battle_config.guild_skill_relog_delay )
+ if( battle_config.guild_skill_relog_delay == 1 )
guild->block_skill(sd, 300000);
}
i = guild->getindex(g, sd->status.account_id, sd->status.char_id);