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:
parent
7756242160
commit
7c95e9d1a4
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue