summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-24 10:08:04 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-24 10:08:04 +0000
commit6e693b7128114ccf331984c9769becd9f43d7a61 (patch)
tree0c0681d48c7d62e032129ab230b8ea8703be1a76
parent61b00d5de29ac93f79535d570287e98ae8a9f906 (diff)
downloadcrawl-ref-6e693b7128114ccf331984c9769becd9f43d7a61.tar.gz
crawl-ref-6e693b7128114ccf331984c9769becd9f43d7a61.zip
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
-rw-r--r--crawl-ref/source/acr.cc3
1 files changed, 3 insertions, 0 deletions
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;