summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-monench.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-02-02 09:36:58 -0500
committerSteve Melenchuk <smelenchuk@gmail.com>2014-03-04 11:21:50 -0700
commit69b86a6357921c8460511a6a90b35254938e966c (patch)
treefb5a924be0702620d6c61e8a750d0f765c5290b8 /crawl-ref/source/spl-monench.cc
parent61501322e2aed0835ac262123df2bf3314795150 (diff)
downloadcrawl-ref-69b86a6357921c8460511a6a90b35254938e966c.tar.gz
crawl-ref-69b86a6357921c8460511a6a90b35254938e966c.zip
Split M_SHADOW from M_GLOWS_LIGHT.
Historically, M_GLOWS_LIGHT was originally a hardcoded list of monsters that can't be backlit: the list was mostly glowing creatures, but also some inherently shadowy ones. When the use of the flag was subsequently expanded, it be Now shadowy creatures: * Can go invisible (even more shadowy) * Have a stealth bonus, not malus. * Are described as "wreathed in shadows" rather than "outlined in light". Give the flag to shadow fiend, shadow dragon, phantasmal warrior, spectral weapon, and shadow fiend. Don't give it to spectral things, which are explicitly described as glowing. (cherry picked from commit c9348eb8f6c4cd4f327a8e0eba418e53d0be50d5) Conflicts: crawl-ref/source/mon-flags.h
Diffstat (limited to 'crawl-ref/source/spl-monench.cc')
-rw-r--r--crawl-ref/source/spl-monench.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-monench.cc b/crawl-ref/source/spl-monench.cc
index bc661261da..00aabc681a 100644
--- a/crawl-ref/source/spl-monench.cc
+++ b/crawl-ref/source/spl-monench.cc
@@ -77,8 +77,8 @@ bool backlight_monsters(coord_def where, int pow, int garbage)
if (mons == NULL)
return false;
- // Already glowing.
- if (mons->glows_naturally())
+ // Already glowing, or shadowy.
+ if (mons->glows_naturally() || mons_class_flag(mons->type, M_SHADOW))
return false;
mon_enchant bklt = mons->get_ench(ENCH_CORONA);