diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-04 20:19:03 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-04 20:19:03 +0000 |
commit | 073f3008fea5091022b9940c2e86bce64f5411e0 (patch) | |
tree | 50014f5ddb61c1ababd13e7ab768c2ecc4c1a44b /src/map/mob.c | |
parent | 13a7d58c1db0aca8b86a87e5a4fc799db9743fcd (diff) | |
download | hercules-073f3008fea5091022b9940c2e86bce64f5411e0.tar.gz hercules-073f3008fea5091022b9940c2e86bce64f5411e0.tar.bz2 hercules-073f3008fea5091022b9940c2e86bce64f5411e0.tar.xz hercules-073f3008fea5091022b9940c2e86bce64f5411e0.zip |
- Cleaned up and used mob_skill_event function when hit by a ground-skill.
- Added one grace range in the mob_loot search function which should fix mob_can_reach failing when invoked with the same distance that distance_bl returned.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6475 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index e05d8e2b6..9f52cbf7b 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -864,7 +864,7 @@ static int mob_ai_sub_hard_lootsearch(struct block_list *bl,va_list ap) target= va_arg(ap,struct block_list**);
if((dist=distance_bl(&md->bl, bl)) < md->db->range2 &&
- mob_can_reach(md,bl,dist, MSS_LOOT) &&
+ mob_can_reach(md,bl,dist+1, MSS_LOOT) &&
((*target) == NULL || !check_distance_bl(&md->bl, *target, dist)) //New target closer than previous one.
) {
(*target) = bl;
|