summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-clouds.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-04-16 02:53:05 +0100
committerChris Campbell <chriscampbell89@gmail.com>2014-04-16 22:12:55 +0100
commitf5cbe865a0d29b5be7f021ae065dc5918bc4b84b (patch)
tree58f6c44d4f6bb7b1e6d1d96e18df382ed535aba3 /crawl-ref/source/spl-clouds.cc
parent641b22f909e8b60752ad2ccdab17c977d257f0fd (diff)
downloadcrawl-ref-f5cbe865a0d29b5be7f021ae065dc5918bc4b84b.tar.gz
crawl-ref-f5cbe865a0d29b5be7f021ae065dc5918bc4b84b.zip
Don't let Conjure Flame target trees
Since it requires empty space to cast in all other cases.
Diffstat (limited to 'crawl-ref/source/spl-clouds.cc')
-rw-r--r--crawl-ref/source/spl-clouds.cc29
1 files changed, 1 insertions, 28 deletions
diff --git a/crawl-ref/source/spl-clouds.cc b/crawl-ref/source/spl-clouds.cc
index 643eed6bf3..5ee89cb0d7 100644
--- a/crawl-ref/source/spl-clouds.cc
+++ b/crawl-ref/source/spl-clouds.cc
@@ -35,18 +35,6 @@
#include "viewchar.h"
#include "shout.h"
-static void _burn_tree(coord_def pos)
-{
- bolt beam;
- beam.origin_spell = SPELL_CONJURE_FLAME;
- beam.range = 1;
- beam.flavour = BEAM_FIRE;
- beam.name = "fireball"; // yay doing this by name
- beam.source = beam.target = pos;
- beam.set_agent(&you);
- beam.fire();
-}
-
spret_type conjure_flame(int pow, const coord_def& where, bool fail)
{
// FIXME: This would be better handled by a flag to enforce max range.
@@ -60,22 +48,7 @@ spret_type conjure_flame(int pow, const coord_def& where, bool fail)
if (cell_is_solid(where))
{
- switch (grd(where))
- {
- case DNGN_METAL_WALL:
- mpr("You can't ignite solid metal!");
- break;
- case DNGN_GREEN_CRYSTAL_WALL:
- mpr("You can't ignite solid crystal!");
- break;
- case DNGN_TREE:
- fail_check();
- _burn_tree(where);
- return SPRET_SUCCESS;
- default:
- mpr("You can't ignite solid rock!");
- break;
- }
+ mpr("You can't place clouds on a wall.");
return SPRET_ABORT;
}