summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/decks.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-05 20:28:15 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-05 20:28:15 +0000
commitc9d385badbb85a615bf748908eabca4e10268341 (patch)
tree15912adb0dc93840e513c4c235b7bc37d77cb1f9 /crawl-ref/source/decks.cc
parent15fa09f801a894a39a7c0949c5ed4c496b4038e4 (diff)
downloadcrawl-ref-c9d385badbb85a615bf748908eabca4e10268341.tar.gz
crawl-ref-c9d385badbb85a615bf748908eabca4e10268341.zip
Fix 2726027: Warpwright card being broken.
Fix 2731677: Sleeping "patrolling" monsters being unwakable. Fix 2729898: Debugging markers on the level map showing up in nonwizmode games. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9586 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r--crawl-ref/source/decks.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc
index 659c986278..058a6b2494 100644
--- a/crawl-ref/source/decks.cc
+++ b/crawl-ref/source/decks.cc
@@ -1493,7 +1493,7 @@ static void _warpwright_card(int power, deck_rarity_type rarity)
int count = 0;
coord_def f;
for (adjacent_iterator ai; ai; ++ai)
- if (grd(*ai) == DNGN_FLOOR && find_trap(*ai) && one_chance_in(++count))
+ if (grd(*ai) == DNGN_FLOOR && !find_trap(*ai) && one_chance_in(++count))
f = *ai;
if (count > 0) // found a spot