diff options
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index 8a06bc341e..5d441a8956 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -1258,6 +1258,19 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail) // is a player controllable act. - bwr if (one_chance_in(12)) dec_penance(GOD_SIF_MUNA, 1); + + } else if (spell_typematch(spell, SPTYP_NECROMANCY) && + you.religion != GOD_KIKUBAAQUDGHA && + you.penance[GOD_KIKUBAAQUDGHA] && one_chance_in(20)) + { + // And you thought you'd Necromutate your way out of penance... + god_speaks(GOD_KIKUBAAQUDGHA, + "Kikubaaqudgha does not allow the disloyal to dabble in death!"); + + // The spell still goes through, but you get a miscast anyway. + MiscastEffect(&you, -god, SPTYP_NECROMANCY, + (you.experience_level / 2) + (spell_mana(spell) * 2), + random2avg(88, 3), "the malice of Kikubaaqudgha"); } const int spfail_chance = spell_fail(spell); |