Skip to content

Commit

Permalink
Lurker FAI: map(x, self) is exactly the same as just self
Browse files Browse the repository at this point in the history
This caused the crash fixed in the previous commit. Although the crash is fixed, it's still stupid and we shouldn't do it.
  • Loading branch information
CelticMinstrel committed Mar 13, 2021
1 parent 714f411 commit 1bdcdb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/ai/micro_ais/engines/lurker_moves.fai
Expand Up @@ -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))
);

Expand Down

0 comments on commit 1bdcdb1

Please sign in to comment.