diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-05 14:17:12 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-05 14:17:12 +0000 |
commit | 88fd21a557af9d87d660e896023b7e8788ea915f (patch) | |
tree | fd6a8cd7d2bbb8a4058fb8399de3a4d9c2582014 /crawl-ref/source/abl-show.cc | |
parent | 8f913bcaf69f680eabc6bbdd2dff2afb311b4ffb (diff) | |
download | crawl-ref-88fd21a557af9d87d660e896023b7e8788ea915f.tar.gz crawl-ref-88fd21a557af9d87d660e896023b7e8788ea915f.zip |
Fixing more bugs.
1788159: Mummy priests don't get potions either.
1787377: Lugonu's Banish doesn't work on self
1786808: More feedback for travelling.
1784235: Randomized staff descriptions.
1774996: /random effect autoIDs for fireball
1768803: Extended inscription warning use.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2057 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r-- | crawl-ref/source/abl-show.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc index ecbe9d0589..9fb84288f2 100644 --- a/crawl-ref/source/abl-show.cc +++ b/crawl-ref/source/abl-show.cc @@ -1585,6 +1585,11 @@ static bool do_ability(const ability_def& abil) case ABIL_LUGONU_BANISH: if ( !spell_direction(spd, beam, DIR_NONE, TARG_ENEMY) ) return (false); + if (beam.target_x == you.x_pos && beam.target_y == you.y_pos) + { + mpr("You cannot banish yourself!"); + return (false); + } zapping( ZAP_BANISHMENT, 16 + you.skills[SK_INVOCATIONS] * 8, beam ); exercise(SK_INVOCATIONS, 3 + random2(5)); break; |