attrcurse() on 'see invisible'

If hero has intrinsic see-invisible and a gremlin steals that, the
map wasn't being updated to hide invisible monsters (until the next
iteration of moveloop() after other monsters finished current turn).
This commit is contained in:
PatR
2021-12-12 11:32:09 -08:00
parent f6b7be49f4
commit f10ef7aba8
3 changed files with 8 additions and 0 deletions

View File

@@ -479,6 +479,12 @@ attrcurse(void)
case 7:
if (HSee_invisible & INTRINSIC) {
HSee_invisible &= ~INTRINSIC;
if (!See_invisible) {
set_mimic_blocking();
see_monsters();
/* might not be able to see self anymore */
newsym(u.ux, u.uy);
}
You("%s!", Hallucination ? "tawt you taw a puttie tat"
: "thought you saw something");
break;