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:
parent
91ebcc710b
commit
5f798ef34a
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue