summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-11 15:37:07 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-11 15:37:07 +0000
commit6358632409aa09a9d51dc501ac53736bdf771f63 (patch)
treec75fefb7ac8034a05045268038b8b54b02f9726f
parent568460872bab3cfa8a0e50d4352890ed420cc828 (diff)
downloadcrawl-ref-6358632409aa09a9d51dc501ac53736bdf771f63.tar.gz
crawl-ref-6358632409aa09a9d51dc501ac53736bdf771f63.zip
Make messages about monsters' submerging show up again, using the same
logic as for drowning messages (since you should be able to see a disturbance due to the submerging even if the monster is invisible). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9962 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 0c392a7f1b..3e8055bbbd 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)
{