From ee7973243ce46493377a8554e7b8bd105ed7b917 Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 20 Sep 2006 13:48:51 +0000 Subject: - Fixed party_sub_count (TK_POWER) failing when the idle_no_share setting was disabled. - Enabled Star Gladiators and Soul Linkers to do /doridori git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8824 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 2 ++ src/map/party.c | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'src/map') diff --git a/src/map/clif.c b/src/map/clif.c index a7e377552..68775f7fe 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -11077,6 +11077,8 @@ void clif_parse_NoviceDoriDori(int fd, struct map_session_data *sd) { switch (sd->class_&MAPID_UPPERMASK) { + case MAPID_SOUL_LINKER: + case MAPID_STAR_GLADIATOR: case MAPID_TAEKWON: if (!sd->state.rest) break; diff --git a/src/map/party.c b/src/map/party.c index 10ab78e5b..ad7274f67 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -823,10 +823,14 @@ 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) && (((TBL_PC *)bl)->idletime < (last_tick - battle_config.idle_no_share))) - return 1; - else + if(((TBL_PC *)bl)->state.autotrade) + return 0; + + if(battle_config.idle_no_share && + ((TBL_PC *)bl)->idletime >= (last_tick - battle_config.idle_no_share)) return 0; + + return 1; } int party_foreachsamemap(int (*func)(struct block_list*,va_list),struct map_session_data *sd,int range,...) -- cgit v1.2.3-70-g09d2