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

@@ -423,6 +423,8 @@ mattackm(
case AT_TUCH:
case AT_BUTT:
case AT_TENT:
if (mattk->aatyp == AT_KICK && mtrapped_in_pit(magr))
continue;
/* Nymph that teleported away on first attack? */
if (distmin(magr->mx, magr->my, mdef->mx, mdef->my) > 1)
/* Continue because the monster may have a ranged attack. */