From 1bdcdb11ed1718737a1156d425d9de8e0f585e24 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Sat, 13 Mar 2021 01:10:56 -0500 Subject: [PATCH] Lurker FAI: map(x, self) is exactly the same as just self This caused the crash fixed in the previous commit. Although the crash is fixed, it's still stupid and we shouldn't do it. --- data/ai/micro_ais/engines/lurker_moves.fai | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/ai/micro_ais/engines/lurker_moves.fai b/data/ai/micro_ais/engines/lurker_moves.fai index 76f12987ff07..8ecb297bb714 100644 --- a/data/ai/micro_ais/engines/lurker_moves.fai +++ b/data/ai/micro_ais/engines/lurker_moves.fai @@ -24,7 +24,7 @@ def reachable_enemies_next_to_swamp(unit_loc,attacks,map) # Returns all the attacks for enemies that the unit at 'unit_loc' # # can reach and that are next to a swamp hex # filter( - map( attacks.attacks, self), + attacks.attacks, (move_from = unit_loc) and (is_swamp( map, attack_from.x, attack_from.y)) );