diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-26 22:11:18 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-26 22:25:41 -0700 |
commit | 1cb8be525c6226553c34b5681454b59a6065eb86 (patch) | |
tree | 891cfa141c809bce76558d88157165012576f4dd /crawl-ref/source/godabil.cc | |
parent | e460ca6889f4927036b8afac6430402c52d48d21 (diff) | |
download | crawl-ref-1cb8be525c6226553c34b5681454b59a6065eb86.tar.gz crawl-ref-1cb8be525c6226553c34b5681454b59a6065eb86.zip |
Make Fedhas Sunlight not fail before targeting
Diffstat (limited to 'crawl-ref/source/godabil.cc')
-rw-r--r-- | crawl-ref/source/godabil.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/godabil.cc b/crawl-ref/source/godabil.cc index 1f087b22de..7097396909 100644 --- a/crawl-ref/source/godabil.cc +++ b/crawl-ref/source/godabil.cc @@ -2141,7 +2141,7 @@ static bool _create_plant(coord_def& target, int hp_adjust = 0) #define SUNLIGHT_DURATION 80 -bool fedhas_sunlight() +spret_type fedhas_sunlight(bool fail) { dist spelld; @@ -2158,7 +2158,9 @@ bool fedhas_sunlight() direction(spelld, args); if (!spelld.isValid) - return false; + return SPRET_ABORT; + + fail_check(); const coord_def base = spelld.target; @@ -2211,7 +2213,7 @@ bool fedhas_sunlight() "an invisible shape" : "some invisible shapes"); } - return true; + return SPRET_SUCCESS; } void process_sunlights(bool future) |