Melee mobs seek cover when retaliating to ranged or spells.
Tim Falken authored 2 months ago
Approach paths weight LOS-exposed tiles higher so they close behind walls, and if no melee stand is reachable they flee to the nearest tile the player cannot shoot. Ranged/spell-capable mobs still path for line of sight.