summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-util.h
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2012-07-30 15:12:01 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2012-07-30 15:17:12 -0600
commit1f7c9b4d1965058481aedfccae9fee892cafcc02 (patch)
tree2261824343b8a9ca647f37837094f7578ad11dbe /crawl-ref/source/spl-util.h
parent1b2340578a891cf3aebe2b894d9c82c102f1542e (diff)
downloadcrawl-ref-1f7c9b4d1965058481aedfccae9fee892cafcc02.tar.gz
crawl-ref-1f7c9b4d1965058481aedfccae9fee892cafcc02.zip
Make "visible monster in range" spell check more sophisticated.
The old system merely added a bonus range square for certain spells, which led to issues in some edge cases. The new check employs tracers to see if targetting anything within range will actually harm an enemy. Cloud spells (other than Mephitic Cloud, which is more akin to a Fireball in its implementation) aren't handled by either the new or the old system, but they probably could be worked in with some additional effort. Fixes #2068.
Diffstat (limited to 'crawl-ref/source/spl-util.h')
-rw-r--r--crawl-ref/source/spl-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-util.h b/crawl-ref/source/spl-util.h
index 69254dbcb9..fcedaa078c 100644
--- a/crawl-ref/source/spl-util.h
+++ b/crawl-ref/source/spl-util.h
@@ -136,6 +136,6 @@ int spell_highlight_by_utility(spell_type spell,
int default_color = COL_UNKNOWN,
bool transient = false,
bool rod_spell = false);
-bool spell_no_hostile_in_range(spell_type spell, int minRange);
+bool spell_no_hostile_in_range(spell_type spell);
#endif