summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 94c765a305..a0edf2bc37 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -4150,7 +4150,7 @@ bool melee_attack::mons_attack_warded_off()
const int warding = defender->warding();
if (warding
&& attacker->is_summoned()
- && !check_mons_resist_magic(attacker_as_monster(), warding))
+ && !attacker_as_monster()->check_res_magic(warding))
{
if (needs_message)
{