From eed94fa357d9ab46541004c6001443c02eded455 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Wed, 15 Jun 2016 21:28:24 -0700 Subject: [PATCH] minor fix. --- desktop/src-common/advent/screens/rooms/inside_house.clj | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/desktop/src-common/advent/screens/rooms/inside_house.clj b/desktop/src-common/advent/screens/rooms/inside_house.clj index 1b5b42f0..03f7e7de 100644 --- a/desktop/src-common/advent/screens/rooms/inside_house.clj +++ b/desktop/src-common/advent/screens/rooms/inside_house.clj @@ -153,8 +153,11 @@ (actions/talk entities :wizard "Don't touch my MagiSafe!!") (open-safe entities))) :scripts {:tune (actions/get-script entities - (actions/talk entities :ego "How did that tune go again?") - (actions/play-safe entities))}} + (if (get-in @entities [:room :entities :wizard]) + (actions/talk entities :wizard "Don't touch my MagiSafe!!") + (do + (actions/talk entities :ego "How did that tune go again?") + (actions/play-safe entities))))}} :knight {:box [71 70 102 190] :script (actions/get-script entities (actions/talk entities :ego "Maybe when I am an older knight, Gandarf will give me his armor!"))}