magic trap uncursing vs scroll of remove curse
Reported directly to devteam: if a magic trap gave its uncurse effect, scroll of remove curse could become discovered. Turns out that it would happen if hero was wielding a stack of unholy water potions. It didn't matter whether they were known as water or known to be cursed or whether hero was carrying any scrolls of remove curse.
This commit is contained in:
@@ -4236,9 +4236,11 @@ domagictrap(void)
|
||||
struct obj pseudo;
|
||||
long save_conf = HConfusion;
|
||||
|
||||
pseudo = cg.zeroobj; /* neither cursed nor blessed,
|
||||
and zero out oextra */
|
||||
pseudo.otyp = SCR_REMOVE_CURSE;
|
||||
pseudo = cg.zeroobj; /* force 'uncursed' and zero out oextra */
|
||||
/* used to be SCR_REMOVE_CURSE but that could cause seffects()
|
||||
to have hero discover scroll of remove curse */
|
||||
pseudo.otyp = SPE_REMOVE_CURSE;
|
||||
pseudo.oclass = SPBOOK_CLASS;
|
||||
HConfusion = 0L;
|
||||
(void) seffects(&pseudo);
|
||||
HConfusion = save_conf;
|
||||
|
||||
Reference in New Issue
Block a user