diff --git a/tng/game/game.py b/tng/game/game.py index f52e620..ac63eeb 100644 --- a/tng/game/game.py +++ b/tng/game/game.py @@ -202,6 +202,9 @@ def move_player(self, player_idx: int, pos: Position) -> 'Game': dest_cell = self.board.at(pos) + if dest_cell.tile is Tile.key and not new_player_status.has_key: + new_player_status = new_player_status._replace(has_key=True) + if dest_cell.tile is Tile.pit: new_player_status = new_player_status._replace(falling=True) board_pos = None