diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-07 16:35:52 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-07 16:35:52 +0000 |
commit | 08872e2829cf5647c431c4643c62aed175fe1a24 (patch) | |
tree | dfae441b72107a299f6ba298621425c42a70e6e7 /crawl-ref | |
parent | 3742fa02b200bb2cf2511cc437d40a3e3bbc49a8 (diff) | |
download | crawl-ref-08872e2829cf5647c431c4643c62aed175fe1a24.tar.gz crawl-ref-08872e2829cf5647c431c4643c62aed175fe1a24.zip |
Reorganize a bit.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5543 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/spells2.cc | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index e401688d8d..365311d2af 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -1811,6 +1811,18 @@ bool summon_general_creature_spell(spell_type spell, int pow, } } + if (success && spell == SPELL_SUMMON_WRAITHS) + { + if (!you.is_undead + && !(you.religion == GOD_KIKUBAAQUDGHA + && (!player_under_penance() + && you.piety >= piety_breakpoint(3) + && you.piety > random2(MAX_PIETY)))) + { + disease_player(25 + random2(50)); + } + } + return (success); } @@ -1924,18 +1936,7 @@ bool summon_general_creature(int pow, bool quiet, monster_type mon, monsters *summon = &menv[monster]; - if (mons_class_holiness(mon) == MH_UNDEAD) - { - if (!you.is_undead - && !(you.religion == GOD_KIKUBAAQUDGHA - && (!player_under_penance() - && you.piety >= piety_breakpoint(3) - && you.piety > random2(MAX_PIETY)))) - { - disease_player(25 + random2(50)); - } - } - else if (mon == MONS_DAEVA) + if (mon == MONS_DAEVA) summon->flags |= MF_ATT_CHANGE_ATTEMPT; } else |