summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-11 15:37:46 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-11 15:37:46 +0000
commita7ae331fadafe35f3bc95b165c2206268e05e325 (patch)
tree7497e8b8efb942c2328fae2e437880449dcfae31
parent2cd32d9940652f0467301ffd387e0c8e277fb6cc (diff)
downloadcrawl-ref-a7ae331fadafe35f3bc95b165c2206268e05e325.tar.gz
crawl-ref-a7ae331fadafe35f3bc95b165c2206268e05e325.zip
Backport trunk r9962 to 0.5.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9963 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/mon-util.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index c7fa1b26d1..abb0becfd4 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -6585,8 +6585,10 @@ void monsters::add_enchantment_effect(const mon_enchant &ench, bool quiet)
case ENCH_SUBMERGED:
mons_clear_trapping_net(this);
- // XXX: What if the monster was invisible before submerging?
- if (!quiet && you.can_see(this))
+
+ // Don't worry about invisibility. You should be able to see if
+ // something has submerged.
+ if (!quiet && mons_near(this))
{
if (type == MONS_AIR_ELEMENTAL)
{