aboutsummaryrefslogtreecommitdiff
path: root/internal/game/look_target.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/look_target.go')
-rw-r--r--internal/game/look_target.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/look_target.go b/internal/game/look_target.go
index 8b0a57c..24a1df5 100644
--- a/internal/game/look_target.go
+++ b/internal/game/look_target.go
@@ -154,8 +154,8 @@ func (g *Game) doLookTarget(sess *net.Session, input string) {
sess.WriteLine(color.ExpandTags(g.colorMode(sess), objDescText))
}
- if def.OnLook != nil {
- g.applyNodeAction(sess, def.OnLook)
+ if len(def.OnLook) > 0 {
+ g.applyInteraction(sess, p, def.OnLook, p.RoomID, false, p.HasItem)
}
if def.Safespot != nil {