summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-08 19:54:34 +0000
committerL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-08 19:54:34 +0000
commitb65de941eec4f8dd18583c9b583128bcd6b8236b (patch)
treedd28e1ceac9ef41d25ce3a669f3bb12030bd7dec
parentb5ab8cfbbc4f33f331ecc3da55780f7681a1d5e1 (diff)
downloadhercules-b65de941eec4f8dd18583c9b583128bcd6b8236b.tar.gz
hercules-b65de941eec4f8dd18583c9b583128bcd6b8236b.tar.bz2
hercules-b65de941eec4f8dd18583c9b583128bcd6b8236b.tar.xz
hercules-b65de941eec4f8dd18583c9b583128bcd6b8236b.zip
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
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--doc/mob_db_mode_list.txt3
-rw-r--r--src/map/mob.c2
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
@@ -4,6 +4,8 @@ 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.
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]
* Fixed Wizard Spirit can block reflected magical damage other than Kaite's.(bugreport:3161) [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)