From b65de941eec4f8dd18583c9b583128bcd6b8236b Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Mon, 8 Jun 2009 19:54:34 +0000 Subject: 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13869 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 2 ++ doc/mob_db_mode_list.txt | 3 ++- src/map/mob.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 7ff0e678b..39f36d9e1 100644 --- a/Changelog-Trunk.txt +++ b/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] diff --git a/doc/mob_db_mode_list.txt b/doc/mob_db_mode_list.txt index 47a735289..73f0b2e3a 100644 --- a/doc/mob_db_mode_list.txt +++ b/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) diff --git a/src/map/mob.c b/src/map/mob.c index 1dbc29757..13523d94e 100644 --- a/src/map/mob.c +++ b/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) -- cgit v1.2.3-60-g2f50