summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/traps.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/traps.cc')
-rw-r--r--crawl-ref/source/traps.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc
index da2ab8ee38..b03d2d0cb6 100644
--- a/crawl-ref/source/traps.cc
+++ b/crawl-ref/source/traps.cc
@@ -1096,8 +1096,9 @@ void trap_def::shoot_ammo(actor& act, bool was_known)
{
if (act.atype() == ACT_PLAYER)
mpr("The trap is out of ammunition!");
- else if (player_can_hear(this->pos))
+ else if (player_can_hear(this->pos) && see_grid(this->pos))
mpr("You hear a soft click.");
+
this->disarm();
}
else