diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-31 21:21:44 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-31 21:21:44 +0000 |
commit | 262fc3a9305a930378746a7146694bf08a2027d8 (patch) | |
tree | 5077423f91ee8665d321cfde7c9d70ffe1fea9ea /src/map | |
parent | f2b4954f2c24e2423ce48f13a6f5a6cb6f51b8ae (diff) | |
download | hercules-262fc3a9305a930378746a7146694bf08a2027d8.tar.gz hercules-262fc3a9305a930378746a7146694bf08a2027d8.tar.bz2 hercules-262fc3a9305a930378746a7146694bf08a2027d8.tar.xz hercules-262fc3a9305a930378746a7146694bf08a2027d8.zip |
- Corrected the mob_ai&2 setting triggering rude-attacked due to can't walk delay.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6901 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/mob.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 |