mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 22:38:14 +00:00
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
@ -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' #
|
# Returns all the attacks for enemies that the unit at 'unit_loc' #
|
||||||
# can reach and that are next to a swamp hex #
|
# can reach and that are next to a swamp hex #
|
||||||
filter(
|
filter(
|
||||||
map( attacks.attacks, self),
|
attacks.attacks,
|
||||||
(move_from = unit_loc) and (is_swamp( map, attack_from.x, attack_from.y))
|
(move_from = unit_loc) and (is_swamp( map, attack_from.x, attack_from.y))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user