diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-26 21:59:25 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-26 22:25:41 -0700 |
commit | 358e3e32b8045aaea1f830060ecea228ff53389d (patch) | |
tree | 11db7192d8d5efbcb0f2da6c58a8c111c6b77cf4 /crawl-ref/source/ability.cc | |
parent | d16265b1dca17f728ff9a9900cd72ea716958647 (diff) | |
download | crawl-ref-358e3e32b8045aaea1f830060ecea228ff53389d.tar.gz crawl-ref-358e3e32b8045aaea1f830060ecea228ff53389d.zip |
Partially refactor cast_healing()
Diffstat (limited to 'crawl-ref/source/ability.cc')
-rw-r--r-- | crawl-ref/source/ability.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/ability.cc b/crawl-ref/source/ability.cc index 5b44f062ab..36c58e8d19 100644 --- a/crawl-ref/source/ability.cc +++ b/crawl-ref/source/ability.cc @@ -2778,11 +2778,11 @@ static spret_type _do_ability(const ability_def& abil, bool fail) if (cast_healing(pow, 3 + (int) ceil(you.skill(SK_INVOCATIONS, 1) / 6.0), true, self ? you.pos() : coord_def(0, 0), !self, - self ? TARG_NUM_MODES : TARG_INJURED_FRIEND) < 0) + self ? TARG_NUM_MODES : TARG_INJURED_FRIEND) + == SPRET_ABORT) { return SPRET_ABORT; } - break; } @@ -2805,7 +2805,8 @@ static spret_type _do_ability(const ability_def& abil, bool fail) if (cast_healing(pow, 10 + (int) ceil(you.skill(SK_INVOCATIONS, 1) / 3.0), true, self ? you.pos() : coord_def(0, 0), !self, - self ? TARG_NUM_MODES : TARG_INJURED_FRIEND) < 0) + self ? TARG_NUM_MODES : TARG_INJURED_FRIEND) + == SPRET_ABORT) { return SPRET_ABORT; } |