From 9b3be62aaa87833420b0ab356c1d4390e9455a1b Mon Sep 17 00:00:00 2001 From: Aaron Traas Date: Sun, 2 Jul 2017 21:56:49 -0400 Subject: [PATCH] Remove testing for intransitive seperate from NO_OBJECT in attact() because we look for it immediately below, and this code is never reached. If it were, intransitive attacks would never work. --- actions.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/actions.c b/actions.c index 13fc8c5..a6f686d 100644 --- 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; -- 2.31.1