From 6f00e679d1f90041599c50c3cc86ab4e499c9ba1 Mon Sep 17 00:00:00 2001 From: haranp Date: Wed, 23 Jul 2008 20:32:37 +0000 Subject: More cleanups and fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6648 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/abl-show.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (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 f0e01f7ed8..858e5ceed9 100644 --- a/crawl-ref/source/abl-show.cc +++ b/crawl-ref/source/abl-show.cc @@ -1738,7 +1738,7 @@ static bool _do_ability(const ability_def& abil) if (!spell_direction(spd, beam, DIR_NONE, TARG_ENEMY)) return (false); - if (beam.target_x == you.x_pos && beam.target_y == you.y_pos) + if (beam.target() == you.pos()) { mpr("You cannot banish yourself!"); return (false); @@ -2159,7 +2159,7 @@ std::vector your_talents( bool check_confused ) // Gods take abilities away until penance completed. -- bwr // God abilities generally don't work while silenced (they require // invoking the god), but Nemelex is an exception. - if (!player_under_penance() && (!silenced(you.x_pos, you.y_pos) + if (!player_under_penance() && (!silenced(you.pos()) || you.religion == GOD_NEMELEX_XOBEH)) { for (int i = 0; i < MAX_GOD_ABILITIES; ++i) @@ -2174,7 +2174,7 @@ std::vector your_talents( bool check_confused ) } // And finally, the ability to opt-out of your faith {dlb}: - if (you.religion != GOD_NO_GOD && !silenced( you.x_pos, you.y_pos )) + if (you.religion != GOD_NO_GOD && !silenced( you.pos() )) _add_talent(talents, ABIL_RENOUNCE_RELIGION, check_confused ); //jmf: Check for breath weapons -- they're exclusive of each other, I hope! -- cgit v1.2.3-54-g00ecf