Przeglądaj źródła

- Fixed Fog of Wall's symmetry in respect to Misc attacks, they no longer get reduced by 50% regardless of who is standing on the fog.
- monster_ai&2 will now trigger the rude-attacked skill when the mob can't move and the attacker is out of it's attack range.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6536 54d463be-8e91-2dee-dedb-b68131a5f0ec

skotlex 19 lat temu
rodzic
commit
9df8532910
3 zmienionych plików z 7 dodań i 5 usunięć
  1. 4 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/battle.c
  3. 2 4
      src/map/mob.c

+ 4 - 0
Changelog-Trunk.txt

@@ -4,6 +4,10 @@ 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/05/09
+	* Fixed Fog of Wall's symmetry in respect to Misc attacks, they no longer
+	  get reduced by 50% regardless of who is standing on the fog. [Skotlex]
+	* monster_ai&2 will now trigger the rude-attacked skill when the mob can't
+	  move and the attacker is out of it's attack range. [Skotlex]
 	* Added missing icon for Joint Beat [Skotlex]
 	* Mob-search functions will now skip enemies with no exp/job_exp. [Skotlex]
 	* Treasure chests will now be excluded from the mob-drop listings

+ 1 - 1
src/map/battle.c

@@ -552,7 +552,7 @@ int battle_calc_damage(struct block_list *src,struct block_list *bl,int damage,i
 			if (flag&BF_MAGIC) {
 				if(!(skill_get_inf(skill_num)&INF_GROUND_SKILL) && rand()%100 < 75)
 					return 0;
-			} else 
+			} else if (flag&BF_WEAPON)
 				damage >>=1;
 		}
 	}

+ 2 - 4
src/map/mob.c

@@ -1069,7 +1069,6 @@ static int mob_ai_sub_hard(struct block_list *bl,va_list ap)
 	mode = status_get_mode(&md->bl);
 
 	can_move = (mode&MD_CANMOVE)&&unit_can_move(&md->bl);
-	//Since can_move is false when you are casting or the damage-delay kicks in, some special considerations
 
 	if (md->target_id)
 	{	//Check validity of current target. [Skotlex]
@@ -1093,13 +1092,12 @@ static int mob_ai_sub_hard(struct block_list *bl,va_list ap)
 	{
 		if (md->attacked_id == md->target_id)
 		{
-			/* Currently being unable to move shouldn't trigger rude-attacked conditions.
-			if (!can_move && !battle_check_range (&md->bl, tbl, md->db->range))
+			if (!can_move && (battle_config.mob_ai&2) &&
+				!battle_check_range(&md->bl, tbl, md->db->range))
 			{	//Rude-attacked.
 				if (md->attacked_count++ > 3)
 					mobskill_use(md, tick, MSC_RUDEATTACKED);
 			}
-			*/
 		} else
 		if ((abl= map_id2bl(md->attacked_id)) && (!tbl || mob_can_changetarget(md, abl, mode))) {
 			if (md->bl.m != abl->m || abl->prev == NULL ||