浏览代码

Failing the Go and Retrace actions no longer consumes a turn.

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

+ 1 - 0
app/World/Classes/Action/ActionGo.ts

@@ -74,6 +74,7 @@ class ActionGo extends Action {
                         if (actor.isPlayer()) {
                             action.say.add("You are already there!");
                         }
+                        action.stop();
                         return false;
                     }
 

+ 1 - 0
app/World/Classes/Action/ActionRetrace.ts

@@ -52,6 +52,7 @@ ActionRetrace.check.addRule(new Rule({
                 if (actor.isPlayer()) {
                     action.say.add("You are already there!");
                 }
+                action.stop();
                 return false;
             }