diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-18 17:24:46 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-18 17:24:46 +0000 |
commit | a0176994016902b36af4a7f80abebabc45d4bb9f (patch) | |
tree | a132bbb1bbcb571cac25d3625a81ccab5e29cf6a /crawl-ref/source/it_use2.cc | |
parent | f644b8d4995c0867db35e6e2b1ea2fda94e290f3 (diff) | |
download | crawl-ref-a0176994016902b36af4a7f80abebabc45d4bb9f.tar.gz crawl-ref-a0176994016902b36af4a7f80abebabc45d4bb9f.zip |
Make sure TSO's halo immediately cancels invisibility.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4338 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/it_use2.cc')
-rw-r--r-- | crawl-ref/source/it_use2.cc | 5 |
1 files changed, 5 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? |