Skip to content

Commit

Permalink
Fix one cell movements over hidden objects
Browse files Browse the repository at this point in the history
  • Loading branch information
csnv committed Dec 29, 2023
1 parent ce874bf commit 0a9c58c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/map/clif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0a9c58c

Please sign in to comment.