U455 - attacking disenchanter

When polymorphed, only attacks involving hands/feet/weapons should result
in damage to object.  Theoretically, hug and butt attacks should affect
objects too, but no forms with such attacks currently allow wearing armor.
This commit is contained in:
cohrs
2003-05-11 03:18:02 +00:00
parent 17ad4116b1
commit 3f1f8c0b91
2 changed files with 5 additions and 0 deletions

View File

@@ -2236,6 +2236,9 @@ uchar aatyp;
if (aatyp == AT_KICK) {
obj = uarmf;
if (!obj) break;
} else if (aatyp == AT_BITE || aatyp == AT_BUTT ||
(aatyp >= AT_STNG && aatyp < AT_WEAP)) {
break; /* no object involved */
}
passive_obj(mon, obj, &(ptr->mattk[i]));
}