From f2473371afba35fad2b204bb41e8d1a63936f835 Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 25 Nov 2019 22:01:12 -0700 Subject: [PATCH] update --- play.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/play.py b/play.py index d6ad520..0859961 100644 --- a/play.py +++ b/play.py @@ -96,6 +96,11 @@ def play_aidungeon_2(): elif action == "quit": exit() elif action == "revert": + + if len(story_manager.story.actions) is 0: + console_print("You can't go back any farther. ") + continue + story_manager.story.actions = story_manager.story.actions[:-1] story_manager.story.results = story_manager.story.results[:-1] console_print("Last action reverted. ")