]> granicus.if.org Git - nethack/commitdiff
sling, like whip, shouldn't shatter from a blow
authorcohrs <cohrs>
Mon, 25 Feb 2002 02:57:57 +0000 (02:57 +0000)
committercohrs <cohrs>
Mon, 25 Feb 2002 02:57:57 +0000 (02:57 +0000)
src/uhitm.c

index aae731aa21a819da5cae2c0772ffbeee16cfe981..528b3baf80097ae7f0df87c1607f954ba593081a 100644 (file)
@@ -576,6 +576,7 @@ int thrown;
                            P_SKILL(wtype) >= P_SKILLED) &&
                          ((monwep = MON_WEP(mon)) != 0 &&
                            weapon_type(monwep) != P_WHIP &&
+                           monwep->otyp != SLING &&
                            !obj_resists(monwep,
                                 50 + 15 * greatest_erosion(obj), 100))) {
                        /*