浏览代码

* Excluded idle and auto-trade party members from TK_POWER list.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6688 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lance 19 年之前
父节点
当前提交
5dbe5de760
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1 0
      Changelog-Trunk.txt
  2. 4 1
      src/map/party.c

+ 1 - 0
Changelog-Trunk.txt

@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 
 2006/05/22
 2006/05/22
+	* Excluded idle and auto-trade party members from TK_POWER list. [Lance]
 	* Fixed compilation errors.
 	* Fixed compilation errors.
 	  Tidy up jobmaster for easy debugging. [Lance]
 	  Tidy up jobmaster for easy debugging. [Lance]
 2006/05/21
 2006/05/21

+ 4 - 1
src/map/party.c

@@ -776,7 +776,10 @@ return 0;
 // party_foreachsamemap(party_sub_count, sd, 0, &c);
 // party_foreachsamemap(party_sub_count, sd, 0, &c);
 int party_sub_count(struct block_list *bl, va_list ap)
 int party_sub_count(struct block_list *bl, va_list ap)
 {
 {
-	return 1;
+	if(!(((TBL_PC *)bl)->state.autotrade) && (((TBL_PC *)bl)->idletime < (last_tick - battle_config.idle_no_share)))
+		return 1;
+	else
+		return 0;
 }
 }
 
 
 // 同じマップのパーティメンバー全体に処理をかける
 // 同じマップのパーティメンバー全体に処理をかける