]> granicus.if.org Git - nethack/commitdiff
putting a saddle on a cockatrice
authorcohrs <cohrs>
Tue, 30 Sep 2003 18:46:49 +0000 (18:46 +0000)
committercohrs <cohrs>
Tue, 30 Sep 2003 18:46:49 +0000 (18:46 +0000)
If you try to put a saddle on a cockatrice, you turn to stone,
even if wearing gloves.  This seemed inconsistent with other cases,
and I couldn't think of a reason why you'd touch the cockatrice with
another body part, so I added the uarmg test.

doc/fixes34.3
src/steed.c

index 0871fee764d53ac9d94c9d0c0d0f78e0f12937a5..8e357f98572c0b1474537a1d79caf84b04b23499 100644 (file)
@@ -35,6 +35,7 @@ casting stone-to-flesh on self while wielding a statue caused problems
 add tab support to menu strings for control-x minimal_enlightenment()
 if the monster that a statue represents is not made of flesh then don't
        allow stone_to_flesh to animate it, make a meatball instead
+attempting to saddle a cockatrice while wearing gloves shouldn't stone you
 
 
 Platform- and/or Interface-Specific Fixes
index 25ec9f8a22c11276351d176ea3b679f99fdd8a82..79cfe56c6dadb72eeb6799f2285eff29270d3b24 100644 (file)
@@ -79,7 +79,7 @@ use_saddle(otmp)
            return 1;
        }
        ptr = mtmp->data;
-       if (touch_petrifies(ptr) && !Stone_resistance) {
+       if (touch_petrifies(ptr) && !uarmg && !Stone_resistance) {
            char kbuf[BUFSZ];
 
            You("touch %s.", mon_nam(mtmp));