diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-28 02:02:44 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-28 02:02:44 +0000 |
commit | c99d6848f032c11e8b4a5117a80e464770896fb5 (patch) | |
tree | 746fb9df5bef0a934fc8803b47494d0313f26112 | |
parent | cb264c7737fc5388a79ea181749825d5a5afcefc (diff) | |
download | crawl-ref-c99d6848f032c11e8b4a5117a80e464770896fb5.tar.gz crawl-ref-c99d6848f032c11e8b4a5117a80e464770896fb5.zip |
Apply trunk r10438 to 0.5.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10439 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/decks.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc index 263a41dd4a..2666ee8195 100644 --- a/crawl-ref/source/decks.cc +++ b/crawl-ref/source/decks.cc @@ -2602,9 +2602,7 @@ static void _curse_card(int power, deck_rarity_type rarity) { // Curse an average of four items. do - { curse_an_item(false); - } while (!one_chance_in(4)); } else @@ -2657,7 +2655,12 @@ static void _crusade_card(int power, deck_rarity_type rarity) && !mons_is_summoned(monster) && !mons_is_shapeshifter(monster)) { + // Prevent assertion if the monster was + // previously worshipping a different god, + // rather than already worshipping your god or + // being an atheist. monster->god = GOD_NO_GOD; + mons_make_god_gift(monster, is_good_god(you.religion) ? GOD_SHINING_ONE : GOD_BEOGH); } |