Monsters spreading out on hide (fixes #1786)

* When you hide and monsters are still on their original chase path, they will no longer spread out
-- This makes Grimtooth mobbing viable again on default settings
-- In all other situations, monsters will still spread out
This commit is contained in:
Playtester 2016-12-11 22:37:32 +01:00
parent 79e9afaff0
commit f084db4f1c

View File

@ -1464,6 +1464,7 @@ int mob_unlocktarget(struct mob_data *md, unsigned int tick)
unit_set_target(&md->ud, 0);
}
if (battle_config.official_cell_stack_limit > 0
&& (md->min_chase == md->db->range3 || battle_config.mob_ai & 0x8)
&& map_count_oncell(md->bl.m, md->bl.x, md->bl.y, BL_CHAR | BL_NPC, 1) > battle_config.official_cell_stack_limit) {
unit_walktoxy(&md->bl, md->bl.x, md->bl.y, 8);
}