Forráskód Böngészése

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

Reddo 5 éve
szülő
commit
efe6249e31

+ 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;
             }