remove a set_uasmon() call from iter_mons() processing

Reported by hackemslashem.
This commit is contained in:
nhmall
2025-02-05 07:57:25 -05:00
parent d611da42cc
commit 0d543a8fae
4 changed files with 11 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ were_change(struct monst *mon)
&& !rn2(night() ? (flags.moonphase == FULL_MOON ? 3 : 30)
: (flags.moonphase == FULL_MOON ? 10 : 50))) {
new_were(mon); /* change into animal form */
gw.were_changes++;
if (!Deaf && !canseemon(mon)) {
const char *howler;
@@ -39,9 +40,8 @@ were_change(struct monst *mon)
}
} else if (!rn2(30) || Protection_from_shape_changers) {
new_were(mon); /* change back into human form */
gw.were_changes++;
}
/* update innate intrinsics (mainly Drain_resistance) */
set_uasmon(); /* new_were() doesn't do this */
}
int
@@ -203,6 +203,7 @@ you_were(void)
return;
}
(void) polymon(u.ulycn);
gw.were_changes++;
}
void