Browse Source

Fixes #19

tags/v0.1.2
Big Bad Waffle 7 years ago
parent
commit
bec51f1558
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/client/ui/templates/target/target.js

+ 3
- 1
src/client/ui/templates/target/target.js View File

@@ -21,7 +21,9 @@ define([

onContextMenu: function(e) {
var target = this.target;
if ((e.button != 2) || (!target) || (!target.dialogue) || (target == window.player) || (target.player))
//This is kind of a hack. We check if the target has a prophecies component since we can't check for
// target.player (only the logged-in player has a player component)
if ((e.button != 2) || (!target) || (!target.dialogue) || (target == window.player) || (target.prophecies))
return;

var context = [


Loading…
Cancel
Save