From eb11a5fe6488077c81e329856f5b54b990347e04 Mon Sep 17 00:00:00 2001 From: Stefan O'Rear Date: Sat, 19 Dec 2009 16:26:55 -0800 Subject: Sticky flame negates invisibility (myuzinn) --- crawl-ref/source/monster.cc | 2 +- crawl-ref/source/player.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source') diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc index b8e5f6f552..b5d6716eb5 100644 --- a/crawl-ref/source/monster.cc +++ b/crawl-ref/source/monster.cc @@ -2915,7 +2915,7 @@ bool monsters::asleep() const bool monsters::backlit(bool check_haloed) const { - return (has_ench(ENCH_CORONA) + return (has_ench(ENCH_CORONA) || has_ench(ENCH_STICKY_FLAME) || ((check_haloed) ? haloed() : false)); } diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 733759432c..126a7539b1 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6898,7 +6898,8 @@ bool player::visible_to(const actor *looker) const bool player::backlit(bool check_haloed) const { return (get_contamination_level() > 0 || duration[DUR_CORONA] - || (check_haloed ? haloed() : false)); + || (check_haloed ? haloed() : false) + || duration[DUR_LIQUID_FLAMES]); } // This is the imperative version. -- cgit v1.2.3-54-g00ecf