summaryrefslogtreecommitdiff
path: root/src/map
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 /src/map
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
Diffstat (limited to 'src/map')
-rw-r--r--src/map/mob.c2
1 files changed, 1 insertions, 1 deletions
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)