]> granicus.if.org Git - nethack/commitdiff
more jumping (trunk only)
authornethack.rankin <nethack.rankin>
Sun, 11 Feb 2007 01:50:56 +0000 (01:50 +0000)
committernethack.rankin <nethack.rankin>
Sun, 11 Feb 2007 01:50:56 +0000 (01:50 +0000)
     Allow jumping via spell when hero or steed has wounded legs.
Otherwise the previous fix for immobilized steed--and the existing code
requiring limbs for physical jump but not for spell jump--is inconsistent.

src/apply.c

index 801eaf1e8b41ff0b3dd98c9d29ed9a92ef25cb68..5830b441063c5953b508c8087eb74951bff88f5c 100644 (file)
@@ -1377,7 +1377,7 @@ int magic; /* 0=Physical, otherwise skill level */
        } else if (!magic && (u.uhunger <= 100 || ACURR(A_STR) < 6)) {
                You("lack the strength to jump!");
                return 0;
-       } else if (Wounded_legs) {
+       } else if (!magic && Wounded_legs) {
                long wl = (Wounded_legs & BOTH_SIDES);
                const char *bp = body_part(LEG);