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.
This commit is contained in:
Celtic Minstrel 2021-03-13 01:10:56 -05:00
parent 7756242160
commit 7c95e9d1a4

View file

@ -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))
);