From b67ca8220470dc19f83db1b199fec11c8f311da4 Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 25 Sep 2008 22:42:41 +0000 Subject: Yred flavor, part 3: forbid the use of holy items (weapons of holy wrath and scrolls of holy word) or spells. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6994 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spl-cast.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/spl-cast.cc') diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index f5865ae038..a2b4fbf49b 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -788,7 +788,10 @@ static void _spellcasting_side_effects(spell_type spell, bool idonly = false) return; if (!_spell_is_utility_spell(spell)) - did_god_conduct( DID_SPELL_NONUTILITY, 10 + spell_difficulty(spell) ); + did_god_conduct(DID_SPELL_NONUTILITY, 10 + spell_difficulty(spell)); + + if (spell_typematch(spell, SPTYP_HOLY)) + did_god_conduct(DID_HOLY, 10 + spell_difficulty(spell)); // Self-banishment gets a special exemption - you're there to spread light if (_spell_is_unholy(spell) && !you.banished) -- cgit v1.2.3-54-g00ecf