From f9fdd3ccb28e13868787c3794df8c338ad44bdcb Mon Sep 17 00:00:00 2001 From: Johanna Ploog Date: Sun, 10 Jan 2010 01:39:47 +0100 Subject: Fix 0000374: All subtypes equal to Geryon's treated as unsafe sacrifice. --- crawl-ref/source/religion.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/religion.cc') 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) -- cgit v1.2.3-54-g00ecf