test(auto_play): ✅ Update test cases to verify scout behavior clears adjacent lairs during exploration
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
b065287bba
commit
aab3497315
1 changed files with 5 additions and 0 deletions
|
|
@ -1380,6 +1380,11 @@ func _try_attack_adjacent_lair(unit: Variant, game_map: RefCounted) -> void:
|
|||
|
||||
|
||||
func _explore(unit: Variant, player: RefCounted, game_map: RefCounted) -> void:
|
||||
# Scouts can also clear lairs — try adjacent lair attack first.
|
||||
_try_attack_adjacent_lair(unit, game_map)
|
||||
if not unit.is_alive() or unit.movement_remaining <= 0:
|
||||
return
|
||||
|
||||
var reachable: Dictionary = PathfinderScript.movement_range(
|
||||
game_map, unit.position, unit.movement_remaining, "land"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue