]> granicus.if.org Git - nethack/commitdiff
mounting steed while levitating at will
authorcohrs <cohrs>
Sun, 24 Feb 2002 21:36:32 +0000 (21:36 +0000)
committercohrs <cohrs>
Sun, 24 Feb 2002 21:36:32 +0000 (21:36 +0000)
- avoid causing damage if you slip and levitating at will
- change message slightly in this case as well

doc/fixes34.0
src/steed.c

index 7ee3099b6a20201e8738cd7ae98c9af0a22c7f6e..a3f384e39e842849da0174430a9dbfc2ad38c863 100644 (file)
@@ -442,6 +442,7 @@ prevent corpses of undead creatures just killed by undead turning from being
 allow fake player monsters to handle artifacts that don't match alignment/role
 chaotic monsters can use Stormbringer; lawful monsters can use Excalibur
 No "corridor disappears" message if Vault guard dies off-level
+slip while mounting and levitating at will should not cause damage
 
 
 Platform- and/or Interface-Specific Fixes
index a486834367d557ab690d7a8f992fce4a0dafd207..698779077cc77b6de74ebf8d15a67ac824b832f9 100644 (file)
@@ -300,8 +300,13 @@ mount_steed(mtmp, force)
            return (FALSE);
        }
        if (!force && (Confusion || Fumbling || Glib || Wounded_legs ||
-                       otmp->cursed || (u.ulevel+mtmp->mtame < rnd(MAXULEV/2+5)))) {
+               otmp->cursed || (u.ulevel+mtmp->mtame < rnd(MAXULEV/2+5)))) {
+           if (Levitation) {
+               pline("%s slips away from you.", Monnam(mtmp));
+               return FALSE;
+           }
            You("slip while trying to get on %s.", mon_nam(mtmp));
+
            /* Unfortunately we don't have a version of the monster-naming
             * function that works well with "a" and "the" but ignores
             * hallucination.  Fortunately, we know the monster must be saddled