1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-05-09 00:35:19 +01:00

Bugfix: Yog attack should only be incremented if there's a target nearby.

Was never hidding, so shopkeepers always hated you.
This commit is contained in:
chris 2023-11-11 13:28:09 -05:00
parent 91ebcc710b
commit 5f798ef34a

View file

@ -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)