summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abl-show.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-04 06:52:54 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-04 06:52:54 +0000
commitb2fa14e4db341fa5ce4c283bec0f6b217ca2347f (patch)
tree8ddd39d825e489b1aaff42bf3f72ed437cfce195 /crawl-ref/source/abl-show.cc
parent3bc09d83070859d0186c82bab43f75b354d24be1 (diff)
downloadcrawl-ref-b2fa14e4db341fa5ce4c283bec0f6b217ca2347f.tar.gz
crawl-ref-b2fa14e4db341fa5ce4c283bec0f6b217ca2347f.zip
Add miscellaneous minor fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7120 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r--crawl-ref/source/abl-show.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc
index 446709cbfe..2559e76713 100644
--- a/crawl-ref/source/abl-show.cc
+++ b/crawl-ref/source/abl-show.cc
@@ -1478,6 +1478,9 @@ static bool _do_ability(const ability_def& abil)
break;
case ABIL_KIKU_ENSLAVE_UNDEAD:
+ {
+ god_acting gdact;
+
if (!spell_direction(spd, beam))
return (false);
@@ -1486,8 +1489,10 @@ static bool _do_ability(const ability_def& abil)
{
return (false);
}
+
exercise(SK_INVOCATIONS, 5 + random2(5));
break;
+ }
case ABIL_KIKU_INVOKE_DEATH:
summon_demon_type(MONS_REAPER,
@@ -1516,12 +1521,12 @@ static bool _do_ability(const ability_def& abil)
break;
case ABIL_YRED_DRAIN_LIFE:
- drain_life( you.skills[SK_INVOCATIONS] );
+ drain_life(you.skills[SK_INVOCATIONS]);
exercise(SK_INVOCATIONS, 2 + random2(4));
break;
case ABIL_YRED_CONTROL_UNDEAD:
- mass_enchantment( ENCH_CHARM, you.skills[SK_INVOCATIONS] * 8, MHITYOU );
+ mass_enchantment(ENCH_CHARM, you.skills[SK_INVOCATIONS] * 8, MHITYOU);
exercise(SK_INVOCATIONS, 3 + random2(4));
break;