diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-08-13 10:25:22 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-08-13 10:25:22 +0000 |
commit | 2de657642dded89bf7f04024b5e7f6eb4a00a18a (patch) | |
tree | cfd04b8277b524ab8ed1c4fc8ba5635a7ba05983 /crawl-ref/source/abl-show.cc | |
parent | 3f3afe7a266723d33b84c19b09b45854dee24ebd (diff) | |
download | crawl-ref-2de657642dded89bf7f04024b5e7f6eb4a00a18a.tar.gz crawl-ref-2de657642dded89bf7f04024b5e7f6eb4a00a18a.zip |
FR 2819565: Abort when trying to read a known ?blinking or ?teleportation
or when zapping a known /teleportation at yourself if you know
you have a -TELE artefact equipped.
In the same situation, prompt when trying to evoke Blink or
cast one of the teleportation spells, in case the player
insists on training Evoc/Spellcasting/Translocations that way.
Also, automatically update the autoinscriptions when tweaking artefact
properties in wizard mode.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10532 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r-- | crawl-ref/source/abl-show.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc index aa6d1604eb..36435d4207 100644 --- a/crawl-ref/source/abl-show.cc +++ b/crawl-ref/source/abl-show.cc @@ -1086,6 +1086,14 @@ static bool _check_ability_possible(const ability_def& abil, } return (true); + case ABIL_EVOKE_BLINK: + if (scan_artefacts(ARTP_PREVENT_TELEPORTATION, false)) + { + return (yesno("You cannot teleport right now. Try anyway?", + true, 'n')); + } + return (true); + case ABIL_EVOKE_BERSERK: case ABIL_TROG_BERSERK: if (you.hunger_state < HS_SATIATED) |