From 780d30eca99a607fefee8e0fc8e66692d06dfea5 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 31 Dec 2023 17:53:00 +0200 Subject: [PATCH] Wielded quarterstaff gives a small spellcasting bonus From NetHack Fourk. --- doc/fixes3-7-0.txt | 1 + src/spell.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 2c009eac6..2b54f748f 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -1339,6 +1339,7 @@ wishing for a "lit candle" provided one, but the feedback as it was added into invent was "partly used candle (lit)" because of how 'lit' timer works don't fall off steed because of Fumbling if saddle is cursed cursed welded quarterstaff doesn't prevent spellcasting +wielded quarterstaff gives a small spellcasting bonus Fixes to 3.7.0-x General Problems Exposed Via git Repository diff --git a/src/spell.c b/src/spell.c index f09a86326..786772863 100644 --- a/src/spell.c +++ b/src/spell.c @@ -2082,6 +2082,9 @@ percent_success(int spell) if (uarms) splcaster += gu.urole.spelshld; + if (uwep && uwep->otyp == QUARTERSTAFF) + splcaster -= 3; /* Small bonus */ + if (!paladin_bonus) { if (uarmh && is_metallic(uarmh)) /* && otyp != HELM_OF_BRILLIANCE */ splcaster += uarmhbon;