From 4e7ce852fffc07900790e7923dd381b776b82599 Mon Sep 17 00:00:00 2001 From: Stefan O'Rear Date: Wed, 30 Dec 2009 01:47:57 -0800 Subject: Deny apportation of items in deep water / lava --- crawl-ref/source/spells4.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'crawl-ref/source/spells4.cc') diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index 9f3f03d736..03dbf76e72 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -1720,6 +1720,15 @@ bool cast_apportation(int pow, const coord_def& where) return (false); } + // Letting mostly-melee characters spam apport after every Shoals + // fight seems like it has too much grinding potential. We could + // weaken this for high power. + if (grd(where) == DNGN_DEEP_WATER || grd(where) == DNGN_LAVA) + { + mpr("The density of the terrain blocks your spell."); + return (false); + } + // Let's look at the top item in that square... // And don't allow apporting from shop inventories. const int item_idx = igrd(where); -- cgit v1.2.3-54-g00ecf