summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/party.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/map/party.c b/src/map/party.c
index ad7274f67..cc6939140 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -823,11 +823,12 @@ int party_send_dot_remove(struct map_session_data *sd)
// party_foreachsamemap(party_sub_count, sd, 0, &c);
int party_sub_count(struct block_list *bl, va_list ap)
{
- if(((TBL_PC *)bl)->state.autotrade)
+ struct map_session_data *sd = (TBL_PC *)bl;
+
+ if (sd->state.autotrade)
return 0;
-
- if(battle_config.idle_no_share &&
- ((TBL_PC *)bl)->idletime >= (last_tick - battle_config.idle_no_share))
+
+ if (battle_config.idle_no_share && (sd->chatID || sd->vender_id || (sd->idletime < (last_tick - battle_config.idle_no_share))))
return 0;
return 1;