From 3466575fa1e8a578e2123b280f1668aa42c9a14f Mon Sep 17 00:00:00 2001 From: PatR Date: Mon, 5 Feb 2024 13:06:22 -0800 Subject: [PATCH] handedness fix --- src/steal.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/steal.c b/src/steal.c index 029a8bbbd..4e2df1f8b 100644 --- a/src/steal.c +++ b/src/steal.c @@ -482,12 +482,14 @@ steal(struct monst* mtmp, char* objnambuf) ostuck = ((otmp->cursed && otmp->owornmask) /* nymphs can steal rings from under cursed weapon but animals can't */ - || (otmp == uright && welded(uwep)) - || (otmp == uleft && welded(uwep) && bimanual(uwep))); + || (otmp == RING_ON_PRIMARY && welded(uwep)) + || (otmp == RING_ON_SECONDARY && welded(uwep) + && bimanual(uwep))); if (ostuck || can_carry(mtmp, otmp) == 0) { - static const char *const how[] = { "steal", "snatch", "grab", - "take" }; + static const char *const how[] = { + "steal", "snatch", "grab", "take" + }; cant_take: pline("%s tries to %s %s%s but gives up.", Monnambuf, ROLL_FROM(how),