From fc23c64c5ed2a2b9a0b734e53c9a45aedd6e1bb3 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 12 Jun 2018 16:04:33 +0200 Subject: [PATCH] orb of Horns, and other cases caring about opposite cells, now work correctly in nonstandard geometries --- game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.cpp b/game.cpp index 813f9e27..baa520d6 100644 --- a/game.cpp +++ b/game.cpp @@ -5060,7 +5060,7 @@ void stabbingAttack(cell *mf, cell *mt, eMonster who, int bonuskill) { if(!c) continue; eMonster mm = c->monst; int flag = AF_APPROACH; - if(angledist(mt, backdir, t) >= 3) flag |= AF_HORNS; + if(angledist(mt, backdir, t) >= S7/2) flag |= AF_HORNS; if(canAttack(mt,who,c,c->monst, flag)) { if(attackMonster(c, flag | AF_MSG, who)) numlance++; produceGhost(c, mm, who);