summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-08 19:35:30 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-08 19:35:30 +0000
commit95e59f96be707defda5bc535d5e72b2f96fc0b21 (patch)
tree12b5e954c5126f1029f9d3a5e9cfdfaf63242b15 /crawl-ref/source/spells3.cc
parent2408978589f3e2b17fb874dc88137a7c0747af7c (diff)
downloadcrawl-ref-95e59f96be707defda5bc535d5e72b2f96fc0b21.tar.gz
crawl-ref-95e59f96be707defda5bc535d5e72b2f96fc0b21.zip
Clean up "Death Channel" some more.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5603 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index da68826e52..b4291f5f3b 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -542,12 +542,14 @@ bool summon_horrible_things(int pow, bool god_gift)
return (false);
}
-bool cast_death_channel(int pow)
+bool cast_death_channel(int pow, bool god_gift)
{
bool success = false;
if (you.duration[DUR_DEATH_CHANNEL] < 30)
{
+ success = true;
+
mpr("Malign forces permeate your being, awaiting release.");
you.duration[DUR_DEATH_CHANNEL] += 15 + random2(1 + (pow / 3));
@@ -555,7 +557,8 @@ bool cast_death_channel(int pow)
if (you.duration[DUR_DEATH_CHANNEL] > 100)
you.duration[DUR_DEATH_CHANNEL] = 100;
- success = true;
+ if (god_gift)
+ you.attribute[ATTR_DIVINE_DEATH_CHANNEL] = 1;
}
else
canned_msg(MSG_NOTHING_HAPPENS);