guardian corpse, statue animation follow-up

- fix ring of protection from shape changers causing
  real monster to be created.
- add ability to get the character class monster from
  genus() or the species.
- use the character class monster when animating
  guardian corpses.
This commit is contained in:
nethack.allison
2003-08-19 14:41:54 +00:00
parent 61c3188405
commit 48ab2a434c
5 changed files with 31 additions and 21 deletions

View File

@@ -438,7 +438,7 @@ register struct monst *mtmp;
/* Make sure its your role's quest quardian; adjust if not */
if (ptr->msound == MS_GUARDIAN && ptr != &mons[urole.guardnum]) {
int mndx = monsndx(ptr);
ptr = &mons[genus(mndx)];
ptr = &mons[genus(mndx,1)];
}
/* be sure to do this before talking; the monster might teleport away, in