mirror of
https://codeberg.org/noisytoot/notnotdnethack.git
synced 2025-07-31 18:02:26 +01:00
Fix crash on using stethoscope on summoned angels.
This commit is contained in:
parent
e913d8dbbb
commit
b571c0a7a4
1 changed files with 3 additions and 2 deletions
|
@ -507,9 +507,10 @@ register struct monst *mtmp;
|
|||
aligntyp alignment;
|
||||
char info[BUFSZ], monnambuf[BUFSZ];
|
||||
|
||||
if (mtmp->ispriest || mtmp->mtyp == PM_ALIGNED_PRIEST
|
||||
|| mtmp->mtyp == PM_ANGEL)
|
||||
if (get_mx(mtmp, MX_EPRI))
|
||||
alignment = EPRI(mtmp)->shralign;
|
||||
else if (get_mx(mtmp, MX_EMIN))
|
||||
alignment = EMIN(mtmp)->min_align;
|
||||
else
|
||||
alignment = mtmp->data->maligntyp;
|
||||
alignment = (alignment > 0) ? A_LAWFUL :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue