From 2de657642dded89bf7f04024b5e7f6eb4a00a18a Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 13 Aug 2009 10:25:22 +0000 Subject: 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 --- crawl-ref/source/abl-show.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source/abl-show.cc') 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) -- cgit v1.2.3-54-g00ecf