Ver Fonte

prevent seer to self-detect

isundil há 6 anos atrás
pai
commit
98e6d7214d
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      loupgarou.js

+ 1 - 1
loupgarou.js

@@ -429,7 +429,7 @@ LoupGarou.prototype.onCupidon = function() {
 
 LoupGarou.prototype.onSeerInternal = function(player, msg) {
     var req = msg.trim().toLowerCase();
-    if (this.players[req]) {
+    if (this.players[req] && this.players[req] !== player) {
         this.bot.sendMsg(player.name, this.currentScenario.whoiswhat[this.players[req].role](this.players[req].name));
         player.jobDone = true;
     } else {