Bläddra i källkod

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

Reddo 5 år sedan
förälder
incheckning
efe6249e31
2 ändrade filer med 2 tillägg och 0 borttagningar
  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;
             }