From: Pasi Kallinen Date: Mon, 7 Feb 2022 07:14:47 +0000 (+0200) Subject: Make double fight prefix cancel out X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2442c395b42fba7b8925677044722a07dcdf58e;p=nethack Make double fight prefix cancel out --- diff --git a/src/cmd.c b/src/cmd.c index 1fd6e3bcc..466639997 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -2081,6 +2081,13 @@ do_run(void) int do_fight(void) { + if (g.context.forcefight) { + Norep("Double fight prefix, canceled."); + g.context.forcefight = 1; + g.domove_attempting = 0; + return ECMD_CANCEL; + } + g.context.forcefight = 1; g.domove_attempting |= DOMOVE_WALK; return ECMD_OK;