summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-09-24 14:02:22 -0500
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-09-24 14:02:22 -0500
commit18f8fc2699ae414b6ad86dfa0f754a663df7092b (patch)
tree3ebd4d1f0d5568a27a45d118cf8f952d1f3ccd9a /crawl-ref/source/spl-cast.cc
parent4f153c59882bb115f43a677a85c9448dc0dafa8e (diff)
downloadcrawl-ref-18f8fc2699ae414b6ad86dfa0f754a663df7092b.tar.gz
crawl-ref-18f8fc2699ae414b6ad86dfa0f754a663df7092b.zip
Since casting Polymorph Other or Alter Self now results in penance for
their being chaotic spells, as well as the original piety loss for mutating, remove the unconditional penalty for even attempting to cast them.
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc16
1 files changed, 5 insertions, 11 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index 1bf3891cb3..2a47897eed 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -1789,9 +1789,6 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
break;
case SPELL_POLYMORPH_OTHER:
- // Trying is already enough, even if it fails.
- did_god_conduct(DID_DELIBERATE_MUTATING, 10);
-
if (!zapping(ZAP_POLYMORPH_OTHER, powc, beam, true))
return (SPRET_ABORT);
break;
@@ -1960,22 +1957,19 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
break;
case SPELL_ALTER_SELF:
- // Trying is already enough, even if it fails.
- did_god_conduct(DID_DELIBERATE_MUTATING, 10);
-
if (normal_cast)
crawl_state.cant_cmd_repeat("You can't repeat Alter Self.");
- if (!enough_hp( you.hp_max / 2, true ))
- {
- mpr( "Your body is in too poor a condition "
- "for this spell to function." );
+ if (!enough_hp(you.hp_max / 2, true))
+ {
+ mpr("Your body is in too poor a condition for this spell "
+ "to function.");
return (SPRET_FAIL);
}
mpr("Your body is suffused with transfigurative energy!");
- set_hp( 1 + random2(you.hp), false );
+ set_hp(1 + random2(you.hp), false);
if (!mutate(RANDOM_MUTATION, false))
mpr("Odd... you don't feel any different.");