polymorphed two-weaponing

Cease two-weapon combat if you're using it in polymorphed form
and revert to normal form for any of the roles which can't use it.
This commit is contained in:
nethack.rankin
2002-06-24 09:59:40 +00:00
parent 3db1e7858f
commit 25f25a396d
2 changed files with 7 additions and 2 deletions

View File

@@ -37,7 +37,8 @@ touchstone entry in data.base
specific message for engraving headstone with wand of digging
wielded/quivered chained ball should be unwielded when thrown
polymorphing into a form that cannot twoweapon should immediately disable
twoweapon mode
twoweapon mode; likewise when reverting from a monster form which
can use two weapons to a normal form which can't
taking partial count of merged objects from a container while your pack
was full split the object and did not re-merge
animal_parts are not always appropriate for ravens

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)polyself.c 3.4 2002/03/24 */
/* SCCS Id: @(#)polyself.c 3.4 2002/06/23 */
/* Copyright (C) 1987, 1988, 1989 by Ken Arromdee */
/* NetHack may be freely redistributed. See license for details. */
@@ -83,6 +83,10 @@ const char *fmt, *arg;
}
done(GENOCIDED);
}
if (u.twoweap && !could_twoweap(youmonst.data))
untwoweapon();
if (was_blind && !Blind) { /* reverting from eyeless */
Blinded = 1L;
make_blinded(0L, TRUE); /* remove blindness */