Blessed teleport scrolls now give a single controlled teleport

This buffs the blessed effect of the teleport scroll by providing the
reader control over their destination even if they lack teleport
control. This seems like it makes the blessed/uncursed distinction
actually meaningful, rather than mostly pointless.
This commit is contained in:
copperwater
2017-10-30 19:22:44 -04:00
committed by Pasi Kallinen
parent f54485b913
commit 1b945bf60a
2 changed files with 3 additions and 6 deletions

View File

@@ -114,6 +114,7 @@ deliberate level teleporter activation ignores magic resistance
auto-id scroll of remove curse when a known buc-state was changed
demon lords hate Demonbane
pets avoid eating shapeshifter corpses unless starving or nearly feral
blessed scroll of teleportation gives a single controlled teleport
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository

View File

@@ -519,7 +519,8 @@ struct obj *scroll;
if (!wizard || yn("Override?") != 'y')
return FALSE;
}
if ((Teleport_control && !Stunned) || wizard) {
if ((Teleport_control && !Stunned) || (scroll && scroll->blessed)
|| wizard) {
if (unconscious()) {
pline("Being unconscious, you cannot control your teleport.");
} else {
@@ -545,11 +546,6 @@ struct obj *scroll;
pline("Sorry...");
result = TRUE;
}
} else if (scroll && scroll->blessed) {
/* (this used to be handled in seffects()) */
if (yn("Do you wish to teleport?") == 'n')
return TRUE;
result = TRUE;
}
g.telescroll = scroll;