diff options
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index d2cfcb03d..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); - return 0; + if (unit->walk_toxy_sub(bl) == 0) { + if ((flag & 2) != 0) + set_mobstate(bl); + + return 1; } + return 0; } |