diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-09-25 22:42:41 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-09-25 22:42:41 +0000 |
commit | b67ca8220470dc19f83db1b199fec11c8f311da4 (patch) | |
tree | ea0e2924f4205a57f40bf4ac6e3e501b96d632c3 /crawl-ref/source/spl-cast.cc | |
parent | fe66a480da9ae461070c73f7690922b240ff3ace (diff) | |
download | crawl-ref-b67ca8220470dc19f83db1b199fec11c8f311da4.tar.gz crawl-ref-b67ca8220470dc19f83db1b199fec11c8f311da4.zip |
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
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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) |