浏览代码

Correctly say the stance needed for the action.

Reddo 5 年之前
父节点
当前提交
07efc2ede8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/World/Classes/Action.ts

+ 2 - 2
app/World/Classes/Action.ts

@@ -155,10 +155,10 @@ Action.check.addRule(
             if (actor instanceof Person) {
                 if (action.allowedStances.indexOf(actor.stance) == -1) {
                     if (action.actor == WorldState.player) {
-                        action.say = new Say("You can't do that while ", PersonStanceNames[actor.stance], ", you need to be ", PersonStanceNames[actor.stance], ".");
+                        action.say = new Say("You can't do that while ", PersonStanceNames[actor.stance], ", you need to be ", PersonStanceNames[action.allowedStances[0]], ".");
                     }
-                    return false;
                     action.stop();
+                    return false;
                 }
             }
         }