diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-15 23:52:18 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-15 23:52:18 +0000 |
commit | 96f8635d8d1267198304f1aab7ef4275cf8e4852 (patch) | |
tree | 13b80ed209ff624ca11afccb5d4b3a587fb6384d /crawl-ref | |
parent | 69c6fd7841394d492337a5b3e44da19ec7c7bc3b (diff) | |
download | crawl-ref-96f8635d8d1267198304f1aab7ef4275cf8e4852.tar.gz crawl-ref-96f8635d8d1267198304f1aab7ef4275cf8e4852.zip |
Self-banishment is not considered unholy. Banishment at the air is still
unholy. [1767848]
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2480 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index 9c5efeb708..e8199ad043 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -794,15 +794,19 @@ void spellcasting_side_effects(spell_type spell, bool idonly = false) if (!spell_is_utility_spell(spell)) did_god_conduct( DID_SPELL_NONUTILITY, 10 + spell_difficulty(spell) ); - if (spell_is_unholy( spell )) - did_god_conduct( DID_UNHOLY, 10 + spell_difficulty(spell) ); + // Self-banishment gets a special exemption - you're there to spread light + if (spell_is_unholy(spell) && + (spell != SPELL_BANISHMENT || !you.banished)) + { + did_god_conduct( DID_UNHOLY, 10 + spell_difficulty(spell) ); + } // Linley says: Condensation Shield needs some disadvantages to keep // it from being a no-brainer... this isn't much, but its a start -- bwr if (spell_typematch(spell, SPTYP_FIRE)) expose_player_to_element(BEAM_FIRE, 0); - if (spell_typematch( spell, SPTYP_NECROMANCY )) + if (spell_typematch(spell, SPTYP_NECROMANCY)) { did_god_conduct( DID_NECROMANCY, 10 + spell_difficulty(spell) ); |