From 5f798ef34a251c6f402cef62419317a8710ffac6 Mon Sep 17 00:00:00 2001 From: chris <ohmygod.stopitwiththis.com> Date: Sat, 11 Nov 2023 13:28:09 -0500 Subject: [PATCH] Bugfix: Yog attack should only be incremented if there's a target nearby. Was never hidding, so shopkeepers always hated you. --- src/allmain.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/allmain.c b/src/allmain.c index b8072243d..e92b1bf32 100644 --- a/src/allmain.c +++ b/src/allmain.c @@ -6062,7 +6062,6 @@ struct monst *magr; if(!attk){ if(youagr){ attk = &symbiote; - u.yogAttack = moves; } else return FALSE; } @@ -6101,6 +6100,9 @@ struct monst *magr; continue; if(!youdef && nonthreat(mdef)) continue; + if(youagr){ + u.yogAttack = moves; + } if(attk->aatyp != AT_MAGC && attk->aatyp != AT_GAZE){ if((touch_petrifies(mdef->data)