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:
parent
79e9afaff0
commit
f084db4f1c
@ -1463,8 +1463,9 @@ int mob_unlocktarget(struct mob_data *md, unsigned int tick)
|
||||
md->ud.target_to = 0;
|
||||
unit_set_target(&md->ud, 0);
|
||||
}
|
||||
if(battle_config.official_cell_stack_limit > 0
|
||||
&& map_count_oncell(md->bl.m, md->bl.x, md->bl.y, BL_CHAR|BL_NPC, 1) > battle_config.official_cell_stack_limit) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user