Merge branch 'NetHack-3.6.2'
This commit is contained in:
@@ -141,7 +141,7 @@ struct obj *wep; /* uwep for attack(), null for kick_monster() */
|
||||
/* if it was an invisible mimic, treat it as if we stumbled
|
||||
* onto a visible mimic
|
||||
*/
|
||||
if (mtmp->m_ap_type && !Protection_from_shape_changers
|
||||
if (M_AP_TYPE(mtmp) && !Protection_from_shape_changers
|
||||
/* applied pole-arm attack is too far to get stuck */
|
||||
&& distu(mtmp->mx, mtmp->my) <= 2) {
|
||||
if (!u.ustuck && !mtmp->mflee && dmgtype(mtmp->data, AD_STCK))
|
||||
@@ -157,7 +157,7 @@ struct obj *wep; /* uwep for attack(), null for kick_monster() */
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (mtmp->m_ap_type && !Protection_from_shape_changers && !sensemon(mtmp)
|
||||
if (M_AP_TYPE(mtmp) && !Protection_from_shape_changers && !sensemon(mtmp)
|
||||
&& !glyph_is_warning(glyph)) {
|
||||
/* If a hidden mimic was in a square where a player remembers
|
||||
* some (probably different) unseen monster, the player is in
|
||||
@@ -199,7 +199,7 @@ struct obj *wep; /* uwep for attack(), null for kick_monster() */
|
||||
* make sure to wake up a monster from the above cases if the
|
||||
* hero can sense that the monster is there.
|
||||
*/
|
||||
if ((mtmp->mundetected || mtmp->m_ap_type) && sensemon(mtmp)) {
|
||||
if ((mtmp->mundetected || M_AP_TYPE(mtmp)) && sensemon(mtmp)) {
|
||||
mtmp->mundetected = 0;
|
||||
wakeup(mtmp, TRUE);
|
||||
}
|
||||
@@ -2988,7 +2988,7 @@ struct monst *mtmp;
|
||||
if (Blind) {
|
||||
if (!Blind_telepat)
|
||||
what = generic; /* with default fmt */
|
||||
else if (mtmp->m_ap_type == M_AP_MONSTER)
|
||||
else if (M_AP_TYPE(mtmp) == M_AP_MONSTER)
|
||||
what = a_monnam(mtmp); /* differs from what was sensed */
|
||||
} else {
|
||||
int glyph = levl[u.ux + u.dx][u.uy + u.dy].glyph;
|
||||
|
||||
Reference in New Issue
Block a user