Explorar o código

Correctly say the stance needed for the action.

Reddo %!s(int64=5) %!d(string=hai) anos
pai
achega
07efc2ede8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;
                 }
             }
         }