From 5fd8f5d303e8915cc74a52e5b86d1fd8f073cb4d Mon Sep 17 00:00:00 2001 From: nsensfel Date: Thu, 6 Jun 2019 17:54:05 +0200 Subject: Fixes some of the issues I've found. --- src/battle/mechanic/action/btl_action_move.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/battle/mechanic/action/btl_action_move.erl') 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; -- cgit v1.2.3-70-g09d2