R363 - can't drown breathless monsters

- if you're polymorphed into an eel, you were able to drown things like xorns
- also, fix the tombstone message when an eel drowns you, it was basing the
message on your location, not the eel's location
This commit is contained in:
cohrs
2002-04-01 05:33:32 +00:00
parent 08c463759c
commit 31c4ccd43b
3 changed files with 6 additions and 3 deletions

View File

@@ -1417,7 +1417,8 @@ register struct attack *mattk;
}
} else if(u.ustuck == mdef) {
/* Monsters don't wear amulets of magical breathing */
if (is_pool(u.ux,u.uy) && !is_swimmer(mdef->data)) {
if (is_pool(u.ux,u.uy) && !is_swimmer(mdef->data) &&
!amphibious(mdef->data)) {
You("drown %s...", mon_nam(mdef));
tmp = mdef->mhp;
} else if(mattk->aatyp == AT_HUGS)