Bugle playing should not scare some monsters

Make awaken_soldiers match awaken_monsters in what monsters
it can scare.
This commit is contained in:
Pasi Kallinen
2021-07-26 21:40:19 +03:00
parent 83c2eb5645
commit 141a7915d6
2 changed files with 4 additions and 1 deletions

View File

@@ -572,6 +572,7 @@ fix heap-use-after-free when attacking monster with potion
for "a" vs "an", add ukulele and uke as exceptions for "an u<anything>"
add new extended command #retravel
remove special doinv key, functionality was equal to BIND=0:inventory
some monsters should not have been scared of bugle playing
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository

View File

@@ -181,7 +181,9 @@ awaken_soldiers(struct monst* bugler /* monster that played instrument */)
&& (mtmp->mstrategy & STRAT_WAITMASK) != 0)
mtmp->mstrategy &= ~STRAT_WAITMASK;
else if (distm < distance / 3
&& !resist(mtmp, TOOL_CLASS, 0, NOTELL))
&& !resist(mtmp, TOOL_CLASS, 0, NOTELL)
/* some monsters are immune */
&& onscary(0, 0, mtmp))
monflee(mtmp, 0, FALSE, TRUE);
}
}