summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-22 09:30:35 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-22 09:30:35 +0000
commit6f33d4ae99cf5fe3eb0e5be1ec213ac642c6e2ff (patch)
tree7e4de626840524bd61e88cdca3c9925167f09298
parent0b74d68828f8542b45be47bcc605dbe06f623fe0 (diff)
downloadcrawl-ref-6f33d4ae99cf5fe3eb0e5be1ec213ac642c6e2ff.tar.gz
crawl-ref-6f33d4ae99cf5fe3eb0e5be1ec213ac642c6e2ff.zip
Fixed broken instant-Lugonu-access-to-first-power (dolorous, 1758116)
My bad. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1907 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/religion.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 5dfcf5f19f..c85b4272f0 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -2683,7 +2683,8 @@ void god_pitch(god_type which_god)
}
}
- if ( you.religion == GOD_LUGONU && !you.worshipped[GOD_LUGONU] )
+ // note that you.worshipped[] has already been incremented
+ if ( you.religion == GOD_LUGONU && you.worshipped[GOD_LUGONU] == 1 )
gain_piety(20); // allow instant access to first power
redraw_skill( you.your_name, player_title() );