more cursed potion of invisibility
Give feedback if a visible monster drinks a potion of invisibility that happens to be cursed so monster fails to become invisible, or if hero hits a visible monster with a cursed potion of invisibility and it fails to become invisible.
This commit is contained in:
@@ -1785,6 +1785,9 @@ potionhit(struct monst *mon, struct obj *obj, int how)
|
||||
if (sawit && !canspotmon(mon)) {
|
||||
if (cansee(mon->mx, mon->my))
|
||||
map_invisible(mon->mx, mon->my);
|
||||
} else if (sawit && cursed_potion) {
|
||||
pline("%s briefly seems to be transparent.", Monnam(mon));
|
||||
/* see use_misc(muse.c) for comment about map_invisible() */
|
||||
} else if (!sawit && canspotmon(mon)) {
|
||||
/* if an invisible mon glyph was present, mon_set_minvis()'s
|
||||
newsym() has gotten rid of it */
|
||||
|
||||
Reference in New Issue
Block a user