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.
This commit is contained in:
Aaron Traas 2017-07-02 21:56:49 -04:00
parent c8445a88d7
commit 9b3be62aaa

View file

@ -20,9 +20,6 @@ static int attack(struct command_t *command)
vocab_t verb = command->verb; vocab_t verb = command->verb;
vocab_t obj = command->obj; vocab_t obj = command->obj;
if (obj == INTRANSITIVE) {
return GO_UNKNOWN;
}
long spk = actions[verb].message; long spk = actions[verb].message;
if (obj == NO_OBJECT || obj == INTRANSITIVE) { if (obj == NO_OBJECT || obj == INTRANSITIVE) {
int changes = 0; int changes = 0;