From 88fd21a557af9d87d660e896023b7e8788ea915f Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 5 Sep 2007 14:17:12 +0000 Subject: 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 --- crawl-ref/source/abl-show.cc | 5 +++++ 1 file changed, 5 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 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; -- cgit v1.2.3-54-g00ecf