diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-08 18:29:52 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-08 18:29:52 +0000 |
commit | 9a20cf0a34b9caec2ff9a5c3708a88fb84c80496 (patch) | |
tree | 8c52366fe290b5821c8d49b21353cd69845e39bd /crawl-ref/source/abl-show.cc | |
parent | 459e277ada7ab661190d4a3497a374d76e30c5a4 (diff) | |
download | crawl-ref-9a20cf0a34b9caec2ff9a5c3708a88fb84c80496.tar.gz crawl-ref-9a20cf0a34b9caec2ff9a5c3708a88fb84c80496.zip |
Fix debugging ray zaps (e.g. unknown wands) always setting obvious_effect by
making ZAP_DEBUGGING_RAY no longer an obvious_effect. It might be more
correct to restore obvious_effect on a tracer, or at least a player_tracer,
but bug 2515082 [and r8500] makes me cautious.
Fix healing being too generously identified.
Fix wand of healing not working on enemies if you happen to worship Ely.
Fixes [2580106].
Also some dead code elimination.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8982 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r-- | crawl-ref/source/abl-show.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc index f64fa21dee..9924f8b957 100644 --- a/crawl-ref/source/abl-show.cc +++ b/crawl-ref/source/abl-show.cc @@ -1715,7 +1715,7 @@ static bool _do_ability(const ability_def& abil) break; case ABIL_ELYVILON_LESSER_HEALING: - if (!cast_healing(3 + (you.skills[SK_INVOCATIONS] / 6))) + if (cast_healing(3 + (you.skills[SK_INVOCATIONS] / 6), true) < 0) return (false); exercise(SK_INVOCATIONS, 1); @@ -1727,7 +1727,7 @@ static bool _do_ability(const ability_def& abil) break; case ABIL_ELYVILON_GREATER_HEALING: - if (!cast_healing(10 + (you.skills[SK_INVOCATIONS] / 3))) + if (cast_healing(10 + (you.skills[SK_INVOCATIONS] / 3), true) < 0) return (false); exercise(SK_INVOCATIONS, 3 + random2(5)); |