Skip to content

Commit

Permalink
Walking npc now ignore official_cell_stack_limit (#6379)
Browse files Browse the repository at this point in the history
  • Loading branch information
Atemo committed Dec 2, 2021
1 parent a205287 commit 4cd2ef7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/map/unit.cpp
Expand Up @@ -628,7 +628,8 @@ static TIMER_FUNC(unit_walktoxy_timer)
ud->to_x = bl->x;
ud->to_y = bl->y;

if (!ud->state.ignore_cell_stack_limit
if (bl->type != BL_NPC // walking npc ignores cell stack limit
&& !ud->state.ignore_cell_stack_limit
&& battle_config.official_cell_stack_limit > 0
&& map_count_oncell(bl->m, x, y, BL_CHAR|BL_NPC, 1) > battle_config.official_cell_stack_limit) {
//Walked on occupied cell, call unit_walktoxy again
Expand Down

0 comments on commit 4cd2ef7

Please sign in to comment.