summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-selfench.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2013-07-07 21:52:14 +0100
committerChris Campbell <chriscampbell89@gmail.com>2013-07-07 21:57:24 +0100
commitc81b0c84f0b7272757aa6b40c2561f6a7b452b1d (patch)
tree0d2cda722efa09f9481103f16fb1243eb91012d3 /crawl-ref/source/spl-selfench.cc
parentdd84641bdd2bbaa575f09797f28e4277ac1a2b78 (diff)
downloadcrawl-ref-c81b0c84f0b7272757aa6b40c2561f6a7b452b1d.tar.gz
crawl-ref-c81b0c84f0b7272757aa6b40c2561f6a7b452b1d.zip
Don't restore MP when forgetting spells via amnesia scroll/ability
Forgetting via book doesn't use it, and it was a weird hidden feature (even if very occasionally useful in highly complicated emergencies!).
Diffstat (limited to 'crawl-ref/source/spl-selfench.cc')
-rw-r--r--crawl-ref/source/spl-selfench.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/crawl-ref/source/spl-selfench.cc b/crawl-ref/source/spl-selfench.cc
index df9d4f40ff..57f7a55e5d 100644
--- a/crawl-ref/source/spl-selfench.cc
+++ b/crawl-ref/source/spl-selfench.cc
@@ -311,16 +311,8 @@ int cast_selective_amnesia(string *pre_msg)
if (pre_msg)
mpr(pre_msg->c_str());
- const int ep_gain = spell_mana(spell);
del_spell_from_memory_by_slot(slot);
- if (ep_gain > 0)
- {
- inc_mp(ep_gain);
- mpr("The spell releases its latent energy back to you as "
- "it unravels.");
- }
-
return 1;
}