summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ability.cc
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-06-26 22:11:18 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-06-26 22:25:41 -0700
commit1cb8be525c6226553c34b5681454b59a6065eb86 (patch)
tree891cfa141c809bce76558d88157165012576f4dd /crawl-ref/source/ability.cc
parente460ca6889f4927036b8afac6430402c52d48d21 (diff)
downloadcrawl-ref-1cb8be525c6226553c34b5681454b59a6065eb86.tar.gz
crawl-ref-1cb8be525c6226553c34b5681454b59a6065eb86.zip
Make Fedhas Sunlight not fail before targeting
Diffstat (limited to 'crawl-ref/source/ability.cc')
-rw-r--r--crawl-ref/source/ability.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/crawl-ref/source/ability.cc b/crawl-ref/source/ability.cc
index df5ca92f3e..6de78b21c2 100644
--- a/crawl-ref/source/ability.cc
+++ b/crawl-ref/source/ability.cc
@@ -2922,13 +2922,7 @@ static spret_type _do_ability(const ability_def& abil, bool fail)
break;
case ABIL_FEDHAS_SUNLIGHT:
- fail_check();
- if (!fedhas_sunlight())
- {
- canned_msg(MSG_OK);
- return SPRET_ABORT;
- }
- break;
+ return fedhas_sunlight(fail);
case ABIL_FEDHAS_PLANT_RING:
fail_check();