From: Aaron Traas Date: Mon, 3 Jul 2017 01:56:49 +0000 (-0400) Subject: Remove testing for intransitive seperate from NO_OBJECT in attact() X-Git-Tag: takebird~85 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=9b3be62aaa87833420b0ab356c1d4390e9455a1b 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. --- 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;