From 2377eb11de1fd731380ea42f1ef0117ac53c1e15 Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Tue, 10 Nov 2009 01:01:12 -0500 Subject: Make Fedhas worshipers immune to spore food destruction. --- crawl-ref/source/ouch.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source/ouch.cc') diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index 3b81350a08..e7fca1e917 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -437,6 +437,14 @@ static bool _expose_invent_to_element(beam_type flavour, int strength) if (target_class == OBJ_UNASSIGNED) return (false); + // Fedhas worshipers are exempt from the food destruction effect + // of spores. + if(flavour == BEAM_SPORE + && you.religion == GOD_FEDHAS) + { + return false; + } + // Currently we test against each stack (and item in the stack) // independently at strength%... perhaps we don't want that either // because it makes the system very fair and removes the protection -- cgit v1.2.3-54-g00ecf