summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/battle/mechanic/action/btl_action_move.erl')
-rw-r--r-- | src/battle/mechanic/action/btl_action_move.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/battle/mechanic/action/btl_action_move.erl b/src/battle/mechanic/action/btl_action_move.erl index a32a40f..a24a96e 100644 --- a/src/battle/mechanic/action/btl_action_move.erl +++ b/src/battle/mechanic/action/btl_action_move.erl @@ -53,12 +53,14 @@ cross (PlayerIX, Map, ForbiddenLocations, [Step|NextSteps], Cost, Location) -> false = IsForbidden, Interruptions = - list:foldl + lists:foldl ( fun (MarkerName, CurrentInterruptions) -> case shr_map:get_marker(MarkerName, Map) of {ok, Marker} -> - case shr_map_marker:interrupts_movement(PlayerIX, Marker) of + case + shr_map_marker:interrupts_movement(PlayerIX, Marker) + of true -> [Marker|CurrentInterruptions]; _ -> CurrentInterruptions end; |