summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-util.cc
diff options
context:
space:
mode:
authorChris Oelmueller <chris.oelmueller@gmail.com>2013-07-31 03:11:17 +0200
committerNeil Moore <neil@s-z.org>2013-08-01 18:00:08 -0400
commit8c1459108a520dfbed3d69fa20fd8cee864db51e (patch)
tree9e9a8aa54d55ee64539602a5bf1eb063826852fd /crawl-ref/source/spl-util.cc
parent00908800440566b4d74f8d94e2e4760c8290e855 (diff)
downloadcrawl-ref-8c1459108a520dfbed3d69fa20fd8cee864db51e.tar.gz
crawl-ref-8c1459108a520dfbed3d69fa20fd8cee864db51e.zip
Make Trog hate all spells but not spells in rods
This should display them as "forbidden" in the M screen, fixing 0001588. Still maintaining that a proper fix here would be to make Trog hate rod spells though.
Diffstat (limited to 'crawl-ref/source/spl-util.cc')
-rw-r--r--crawl-ref/source/spl-util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc
index 2b66185707..95cdce130e 100644
--- a/crawl-ref/source/spl-util.cc
+++ b/crawl-ref/source/spl-util.cc
@@ -1203,7 +1203,7 @@ int spell_highlight_by_utility(spell_type spell, int default_color,
{
// If your god hates the spell, that
// overrides all other concerns
- if (god_hates_spell(spell, you.religion))
+ if (god_hates_spell(spell, you.religion, rod_spell))
return COL_FORBIDDEN;
if (_spell_is_empowered(spell) && !rod_spell)