소스 검색

- Removed "mobs being enemies of each other all the time" because, even though mobs can hit each other as they should, they will refuse to use support skills on enemies, which breaks several of their skills. Mobs can't both help and attack someone tagged as enemy D: I guess eA is just too smart to emulate Aegis's sloppy coding.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9500 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 18 년 전
부모
커밋
36f6c8122e
3개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 0
      Changelog-Trunk.txt
  2. 0 2
      conf-tmpl/battle/monster.conf
  3. 1 1
      src/map/battle.c

+ 5 - 0
Changelog-Trunk.txt

@@ -4,6 +4,11 @@ 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.
 
 2006/12/14
+	* Removed "mobs being enemies of each other all the time" because, even
+	  though mobs can hit each other as they should, they will refuse to use
+	  support skills on enemies, which breaks several of their skills. Mobs can't
+	  both help and attack someone tagged as enemy!
+	  (I guess eA is just too smart to emulate Aegis's sloppy coding)
 	* Cleaned up the strip code (GS_DISARM, rogue skills).
 	* Cleaned some the MD_DETECTOR code.
 2006/12/13

+ 0 - 2
conf-tmpl/battle/monster.conf

@@ -69,8 +69,6 @@ monster_max_aspd: 199
 //        the same skill, instead of only that particular entry (eg: Mob has heal
 //        on six lines for different conditions, when set, whenever one of the six 
 //        trigger, all of them will share the delay)
-// 0x400: When set, mobs of the same AI type are allied (by default all mobs are 
-//        enemies of each other).
 // Example: 0x140 -> Chase players through warps + use skills in random order.
 monster_ai: 0
 

+ 1 - 1
src/map/battle.c

@@ -3335,7 +3335,7 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
 			TBL_MOB*md = (TBL_MOB*)s_bl;
 			if (!agit_flag && md->guardian_data && md->guardian_data->guild_id)
 				return 0; //Disable guardians/emperium owned by Guilds on non-woe times.
-			if(md->state.killer || !(battle_config.mob_ai&0x400))
+			if(md->state.killer/* || !(battle_config.mob_ai&0x400)*/)
 				state |= BCT_ENEMY; //By default everyone hates mobs.
 			else
 			{	//Smart enemy criteria.