From 6e693b7128114ccf331984c9769becd9f43d7a61 Mon Sep 17 00:00:00 2001 From: haranp Date: Sun, 24 Sep 2006 10:08:04 +0000 Subject: Autoprayer will not pray at altars. [I get the 100th commit! :-)] git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@100 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/acr.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index 88e9adec14..eff397e58a 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -2362,6 +2362,9 @@ static command_type get_next_cmd() { return CMD_PERFORM_ACTIVITY; if (autoprayer_on && you.duration[DUR_PRAYER] == 0 && just_autoprayed == 0 && you.religion != GOD_NO_GOD && + /* must fix this if we add more gods! */ + ! (grd[you.x_pos][you.y_pos] >= DNGN_ALTAR_ZIN && + grd[you.x_pos][you.y_pos] <= DNGN_ALTAR_ELYVILON) && i_feel_safe()) { just_autoprayed = 1; about_to_autopray = 0; -- cgit v1.2.3-54-g00ecf