diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-17 00:53:52 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-17 00:53:52 -0600 |
commit | 156bccf542ff28a29a69bc89af69259951f613bf (patch) | |
tree | 4e1dc31a7d81a7bf7e1227baa47947d6b83e6d26 /crawl-ref/source/abl-show.cc | |
parent | 1135ed738aab700ed8831997942fff3468b97c45 (diff) | |
download | crawl-ref-156bccf542ff28a29a69bc89af69259951f613bf.tar.gz crawl-ref-156bccf542ff28a29a69bc89af69259951f613bf.zip |
And do the same for the rest of Fedhas' invocations.
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r-- | crawl-ref/source/abl-show.cc | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc index 50bebc1b71..c867cc4a36 100644 --- a/crawl-ref/source/abl-show.cc +++ b/crawl-ref/source/abl-show.cc @@ -1952,33 +1952,50 @@ static bool _do_ability(const ability_def& abil) case ABIL_FEDHAS_SUNLIGHT: if (!sunlight()) + { + canned_msg(MSG_NOTHING_HAPPENS); return (false); + } exercise(SK_INVOCATIONS, 2 + random2(3)); break; case ABIL_FEDHAS_PLANT_RING: if (!plant_ring_from_fruit()) + { + canned_msg(MSG_NOTHING_HAPPENS); return (false); + } exercise(SK_INVOCATIONS, 2 + random2(3)); break; case ABIL_FEDHAS_RAIN: - rain(you.pos()); + if (!rain(you.pos())) + { + canned_msg(MSG_NOTHING_HAPPENS); + return (false); + } exercise(SK_INVOCATIONS, 2 + random2(3)); break; case ABIL_FEDHAS_SPAWN_SPORES: - corpse_spores(); + if (!corpse_spores()) + { + canned_msg(MSG_NOTHING_HAPPENS); + return (false); + } exercise(SK_INVOCATIONS, 2 + random2(3)); break; case ABIL_FEDHAS_EVOLUTION: if (!evolve_flora()) + { + canned_msg(MSG_NOTHING_HAPPENS); return (false); + } exercise(SK_INVOCATIONS, 2 + random2(3)); break; |