Allow shift location action to move the whole row.
[naja.git] / naja / actions.py
index 0baba3a34acbeb6158d04ff36d94abf8d6a87f7f..431b126829a1d48b401fdb5e3e288c5406a9a0dc 100644 (file)
@@ -293,7 +293,9 @@ class ShiftLocations(LocationAction):
 
     def perform_action(self, board, location):
         sound.play_sound('grind.ogg')
-        board.shift_locations(self.data['direction'])
+        board.shift_locations(
+            self.data['direction'],
+            self.data.get('skip_player', False))
 
 
 class RotateLocations(LocationAction):