diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-26 22:01:30 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-26 22:25:41 -0700 |
commit | e460ca6889f4927036b8afac6430402c52d48d21 (patch) | |
tree | eaee95d742c9dce3088fc9075c9280a8573db3bc /crawl-ref/source/ability.cc | |
parent | 358e3e32b8045aaea1f830060ecea228ff53389d (diff) | |
download | crawl-ref-e460ca6889f4927036b8afac6430402c52d48d21.tar.gz crawl-ref-e460ca6889f4927036b8afac6430402c52d48d21.zip |
Make Lugonu's Banish not fail before targeting
Diffstat (limited to 'crawl-ref/source/ability.cc')
-rw-r--r-- | crawl-ref/source/ability.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/crawl-ref/source/ability.cc b/crawl-ref/source/ability.cc index 36c58e8d19..df5ca92f3e 100644 --- a/crawl-ref/source/ability.cc +++ b/crawl-ref/source/ability.cc @@ -2830,7 +2830,6 @@ static spret_type _do_ability(const ability_def& abil, bool fail) break; case ABIL_LUGONU_BANISH: - fail_check(); beam.range = LOS_RADIUS; if (!spell_direction(spd, beam)) @@ -2842,12 +2841,8 @@ static spret_type _do_ability(const ability_def& abil, bool fail) return SPRET_ABORT; } - if (!zapping(ZAP_BANISHMENT, 16 + you.skill(SK_INVOCATIONS, 8), beam, - true)) - { - return SPRET_ABORT; - } - break; + return zapping(ZAP_BANISHMENT, 16 + you.skill(SK_INVOCATIONS, 8), beam, + true, NULL, fail); case ABIL_LUGONU_CORRUPT: fail_check(); |