diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-01-10 01:39:47 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-01-10 01:43:47 +0100 |
commit | f9fdd3ccb28e13868787c3794df8c338ad44bdcb (patch) | |
tree | ae0fd78e253da7e2b6cbedc89334cb5db833575d /crawl-ref/source/religion.cc | |
parent | 6234b8246f7323d46c004f8a812a09c807bd6e57 (diff) | |
download | crawl-ref-f9fdd3ccb28e13868787c3794df8c338ad44bdcb.tar.gz crawl-ref-f9fdd3ccb28e13868787c3794df8c338ad44bdcb.zip |
Fix 0000374: All subtypes equal to Geryon's treated as unsafe sacrifice.
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 594714855c..ae6c6c1f4b 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -2255,8 +2255,9 @@ static void _do_god_gift(bool prayed_for) static bool _is_risky_sacrifice(const item_def& item) { - return (item.base_type == OBJ_ORBS || is_rune(item) - || item.sub_type == MISC_HORN_OF_GERYON); + return (item.base_type == OBJ_ORBS || is_rune(item) + || item.base_type == OBJ_MISCELLANY + && item.sub_type == MISC_HORN_OF_GERYON); } static bool _confirm_pray_sacrifice(god_type god) |