diff options
author | Haruna <haru@dotalux.com> | 2014-11-10 21:09:46 +0100 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2014-11-10 21:09:46 +0100 |
commit | 82ca427389450aabec616a55b1a5ed519bd44d8e (patch) | |
tree | 6c004ef9edd56f6ac039df26342810ac21de3bdb /src/map/mob.c | |
parent | c1e1099c701de325a076172bcadf544e5b3000c9 (diff) | |
parent | cfd535c7f5b442ae3d96a192a2dbe8650cae99af (diff) | |
download | hercules-82ca427389450aabec616a55b1a5ed519bd44d8e.tar.gz hercules-82ca427389450aabec616a55b1a5ed519bd44d8e.tar.bz2 hercules-82ca427389450aabec616a55b1a5ed519bd44d8e.tar.xz hercules-82ca427389450aabec616a55b1a5ed519bd44d8e.zip |
Merge pull request #386 from 4144/fixplugins
Fix interfaces methods usage.
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 466124928..5af3f99b4 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1436,7 +1436,7 @@ bool mob_ai_sub_hard(struct mob_data *md, int64 tick) { if(md->ud.walktimer != INVALID_TIMER && (!can_move || md->ud.walkpath.path_pos <= battle_config.mob_chase_refresh) && (tbl || md->ud.walkpath.path_pos == 0)) return true; //Walk at least "mob_chase_refresh" cells before dropping the target unless target is non-existent - mob_unlocktarget(md, tick); //Unlock target + mob->unlocktarget(md, tick); //Unlock target tbl = NULL; } } @@ -1738,7 +1738,7 @@ int mob_ai_sub_lazy(struct mob_data *md, va_list args) { if( DIFF_TICK(md->next_walktime,tick) < 0 && (status_get_mode(&md->bl)&MD_CANMOVE) && unit->can_move(&md->bl) ) { if( rnd()%1000 < MOB_LAZYMOVEPERC(md) ) - mob_randomwalk(md, tick); + mob->randomwalk(md, tick); } else if( md->ud.walktimer == INVALID_TIMER ) { |