From 0a9c58c2696330faf1deeb7a8d430a117a020fe7 Mon Sep 17 00:00:00 2001 From: csnv Date: Mon, 4 Dec 2023 01:42:36 +0100 Subject: [PATCH] Fix one cell movements over hidden objects --- src/map/clif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map/clif.c b/src/map/clif.c index 3ff3ed96477..b1ce4f8fa8f 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -11835,7 +11835,8 @@ static void clif_parse_WalkToXY(int fd, struct map_session_data *sd) // Do not allow one cell move commands if the target cell is not free if (battle_config.official_cell_stack_limit > 0 - && check_distance_blxy(&sd->bl, x, y, 1) && map->count_oncell(sd->bl.m, x, y, BL_CHAR | BL_NPC, 1)) + && check_distance_blxy(&sd->bl, x, y, 1) + && map->count_oncell(sd->bl.m, x, y, BL_CHAR | BL_NPC, 0x1 | 0x2) >= battle_config.official_cell_stack_limit) return; pc->delinvincibletimer(sd);