|
@@ -46,7 +46,7 @@ module Elements.HyperlinkHandler {
|
|
|
|
|
|
export async function hyperlinkObject (thing? : any) {
|
|
export async function hyperlinkObject (thing? : any) {
|
|
resetAvailableActions();
|
|
resetAvailableActions();
|
|
- if (thing instanceof Thing && thing != WorldState.player) {
|
|
|
|
|
|
+ if (thing instanceof Thing && thing != WorldState.player && thing.isVisibleTo(WorldState.player)) {
|
|
await HyperlinkingRulebook.execute({noun: thing});
|
|
await HyperlinkingRulebook.execute({noun: thing});
|
|
|
|
|
|
currentActionTarget.nodeValue = thing.getPrintedName() + ": ";
|
|
currentActionTarget.nodeValue = thing.getPrintedName() + ": ";
|