Monsters can track hero through fixed teleport traps

Also make fixed teleport traps always trigger when entered.
This commit is contained in:
Pasi Kallinen
2024-06-15 18:44:25 +03:00
parent 4e1b6411bf
commit 89ea47f702
6 changed files with 31 additions and 1 deletions

View File

@@ -2316,7 +2316,10 @@ mfndpos(
ttmp->ttyp);
continue;
}
if (!m_harmless_trap(mon, ttmp)) {
/* fixed-destination teleport trap, was used by hero */
if (fixed_tele_trap(ttmp) && hastrack(nx, ny))
info[cnt] |= ALLOW_TRAPS;
else if (!m_harmless_trap(mon, ttmp)) {
if (!(flag & ALLOW_TRAPS)) {
if (mon_knows_traps(mon, ttmp->ttyp))
continue;