summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 2fc76337dd..cafcc35029 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -3074,7 +3074,7 @@ static bool _untrap_target(const coord_def move, bool check_confused)
monsters* mon = monster_at(target);
if (mon && player_can_hit_monster(mon))
{
- if (mon->caught() && mons_friendly(mon)
+ if (mon->caught() && mon->friendly()
&& player_can_open_doors() && !you.confused())
{
const std::string prompt =