From 9877e52025c8bca62b2f7bc50ad137d0940bba0b Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Wed, 18 Mar 2026 18:04:33 +0200 Subject: [PATCH] Ring of stealth prevents hero from leaving tracks --- doc/fixes3-7-0.txt | 1 + src/track.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 525eb0ac6..9a8bd5dc4 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -2900,6 +2900,7 @@ monsters will use throw-and-return weapons such as an aklys archeologists can identify scrolls by deciphering their labels monster destroy armor -spell first erodes armor iron shoes protect the wearer against certain floor-based traps +ring of stealth prevents hero from leaving tracks Platform- and/or Interface-Specific New Features diff --git a/src/track.c b/src/track.c index f5b915f22..178e5a6f9 100644 --- a/src/track.c +++ b/src/track.c @@ -23,6 +23,10 @@ initrack(void) void settrack(void) { + if ((uleft && uleft->otyp == RIN_STEALTH) + || (uright && uright->otyp == RIN_STEALTH)) + return; + if (utcnt < UTSZ) utcnt++; if (utpnt == UTSZ)