Remove testing for intransitive seperate from NO_OBJECT in attact()
authorAaron Traas <aaron@traas.org>
Mon, 3 Jul 2017 01:56:49 +0000 (21:56 -0400)
committerAaron Traas <aaron@traas.org>
Mon, 3 Jul 2017 01:56:49 +0000 (21:56 -0400)
because we look for it immediately below, and this code is never
reached. If it were, intransitive attacks would never work.

actions.c

index 13fc8c5dfdf7bee165612b5c0e3b5af818b84231..a6f686d5115477059387e896308e65a9d498e08d 100644 (file)
--- a/actions.c
+++ b/actions.c
@@ -20,9 +20,6 @@ static int attack(struct command_t *command)
     vocab_t verb = command->verb;
     vocab_t obj = command->obj;
 
-    if (obj == INTRANSITIVE) {
-        return GO_UNKNOWN;
-    }
     long spk = actions[verb].message;
     if (obj == NO_OBJECT || obj == INTRANSITIVE) {
         int changes = 0;