summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/mob.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 2a7b16190..0f150a8b7 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.
2006/05/31
+ * Corrected the mob_ai&2 setting triggering rude-attacked due to can't walk
+ delay. [Skotlex]
* Made the char_name_option char_athena.conf setting apply to parties and
guilds as well. It cannot be applied to pets yet without adding a
change-name-request interserver packet. [Skotlex]
diff --git a/src/map/mob.c b/src/map/mob.c
index 087d05546..dfc10b2ac 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1096,8 +1096,9 @@ static int mob_ai_sub_hard(struct block_list *bl,va_list ap)
{
if (!can_move && (battle_config.mob_ai&2) &&
!battle_check_range(&md->bl, tbl, md->status.rhw.range))
- { //Rude-attacked.
- if (md->attacked_count++ > 3)
+ { //Rude-attacked (avoid triggering due to can-walk delay).
+ if (DIFF_TICK(tick, md->ud.canmove_tick) > 0 &&
+ md->attacked_count++ > 3)
mobskill_use(md, tick, MSC_RUDEATTACKED);
}
} else