Cursed potions of invisibility remove intrinsic invisibility
They still have their other current effects (aggravating monsters and granting temporary invisibility). This is mostly meant as a way of counteracting the "turn permanently invisible" effect of magic traps, for players who would rather their characters remained visible. Thanks to paxed for helping with this commit.
This commit is contained in:
@@ -827,6 +827,10 @@ peffect_invisibility(struct obj *otmp)
|
||||
if (otmp->cursed) {
|
||||
pline("For some reason, you feel your presence is known.");
|
||||
aggravate();
|
||||
|
||||
/* doing this gives temporary invisibility, but removes permanent
|
||||
invisibility */
|
||||
HInvis &= ~FROMOUTSIDE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user