diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/unit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index dd644d8d1..a879a125f 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -728,10 +728,13 @@ static int unit_walktobl(struct block_list *bl, struct block_list *tbl, int rang if(!unit->can_move(bl)) return 0; - if (unit->walk_toxy_sub(bl) == 0 && (flag & 2) != 0) { - set_mobstate(bl); + if (unit->walk_toxy_sub(bl) == 0) { + if ((flag & 2) != 0) + set_mobstate(bl); + return 1; } + return 0; } |