Bugle playing should not scare some monsters
Make awaken_soldiers match awaken_monsters in what monsters it can scare.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user