diff options
-rw-r--r-- | crawl-ref/source/it_use2.cc | 5 | ||||
-rw-r--r-- | crawl-ref/source/mon-util.cc | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc index 6ca4a09a46..ce0aea3077 100644 --- a/crawl-ref/source/it_use2.cc +++ b/crawl-ref/source/it_use2.cc @@ -38,6 +38,7 @@ #include "religion.h" #include "skills2.h" #include "spells2.h" +#include "spells3.h" #include "spl-cast.h" #include "spl-util.h" #include "stuff.h" @@ -244,6 +245,10 @@ bool potion_effect( potion_type pot_eff, int pow, bool was_known ) you.duration[DUR_INVIS] = 100; you.duration[DUR_BACKLIGHT] = 0; + + // Invisible players inside a halo get backlight. + if (halo_radius()) + manage_halo(); break; case POT_PORRIDGE: // oatmeal - always gluggy white/grey? diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 7765e0dc7c..2ad5cfe4ef 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -4237,6 +4237,10 @@ bool monsters::add_ench(const mon_enchant &ench) if (new_enchantment) add_enchantment_effect(ench); + // Invisible monsters inside a halo get backlight. + if (inside_halo(x, y)) + manage_halo(); + return (true); } |