Monsters trapped in pits cannot kick

This commit is contained in:
Pasi Kallinen
2025-07-04 17:39:08 +03:00
parent a0d9c94ece
commit e2b80cd886
5 changed files with 25 additions and 0 deletions

View File

@@ -5498,6 +5498,9 @@ hmonas(struct monst *mon)
FALLTHROUGH;
/*FALLTHRU*/
case AT_KICK:
if (mattk->aatyp == AT_KICK && mtrapped_in_pit(&gy.youmonst))
continue;
/*FALLTHRU*/
case AT_BITE:
case AT_STNG:
case AT_BUTT: