Browse Source

Follow up to r13867, corrected the newly added MD_TARGETWEAK. Monsters with this mode will now only target players five level LOWER than itself.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13869 54d463be-8e91-2dee-dedb-b68131a5f0ec
L0ne_W0lf 16 years ago
parent
commit
5d88480879
3 changed files with 5 additions and 2 deletions
  1. 2 0
      Changelog-Trunk.txt
  2. 2 1
      doc/mob_db_mode_list.txt
  3. 1 1
      src/map/mob.c

+ 2 - 0
Changelog-Trunk.txt

@@ -3,6 +3,8 @@ Date	Added
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
+09/06/08
+	* Rev. 13869 Follow up to r13867, corrected the newly added MD_TARGETWEAK. Monsters with this mode will now only target players five level LOWER than itself. [L0ne_W0lf]
 09/06/08
 	* Fixed bHPGainValue and bSPGainValue worked on all types of attacks and was only activated on mob's death.(bugreport:3193) [Inkfish]
 	* Added a configuration for whether damage of EarthQuake with single target can be reflected. [Inkfish]

+ 2 - 1
doc/mob_db_mode_list.txt

@@ -73,7 +73,8 @@ Change Target Chase: Enables a mob to switch targets when attacked while
 	chasing another character.
 
 Target Weak: Allows aggressive monsters to only be aggressive against 
-	characters that aren't five or more levels above the monster's.
+	characters that are five levels below it's own level.
+	For example, a monster of level 104 will not pick fights with a level 99.
 
 Random Target: Picks a new random target in range on each attack / skill.
 	(not implemented)

+ 1 - 1
src/map/mob.c

@@ -967,7 +967,7 @@ static int mob_ai_sub_hard_activesearch(struct block_list *bl,va_list ap)
 	if ((*target) == bl || !status_check_skilluse(&md->bl, bl, 0, 0))
 		return 0;
 
-	if ((mode&MD_TARGETWEAK) && status_get_lv(bl) >= md->level+5)
+	if ((mode&MD_TARGETWEAK) && status_get_lv(bl) >= md->level-5)
 		return 0;
 
 	if(battle_check_target(&md->bl,bl,BCT_ENEMY)<=0)