From bf10a70de0d5cd0f7925d77bfcfd320b7d58e7d8 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 26 Aug 2018 18:43:22 +0300 Subject: [PATCH] Make it clear when a leprechaun dodges your attack It was not obvious what was happening when a leprechaun dodged your attack. Add a message to explicitly spell it out. Code by aosdict. --- doc/fixes36.2 | 1 + src/uhitm.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/fixes36.2 b/doc/fixes36.2 index d2d40a267..94d8c1394 100644 --- a/doc/fixes36.2 +++ b/doc/fixes36.2 @@ -145,6 +145,7 @@ sortloot option has been enhanced to improve object ordering; primarily, items of undiscovered type come out before items of discovered type within each class or sub-class of objects YAFM when stumbling on an undetected monster while hallucinating +Make it clear when a leprechaun dodges your attack Code Cleanup and Reorganization diff --git a/src/uhitm.c b/src/uhitm.c index 16bac15a6..9de48c971 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -412,8 +412,10 @@ register struct monst *mtmp; && !mtmp->mconf && mtmp->mcansee && !rn2(7) && (m_move(mtmp, 0) == 2 /* it died */ || mtmp->mx != u.ux + u.dx - || mtmp->my != u.uy + u.dy)) /* it moved */ + || mtmp->my != u.uy + u.dy)) { /* it moved */ + You("miss wildly and stumble forwards."); return FALSE; + } if (Upolyd) (void) hmonas(mtmp);