summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monster.h
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-07-09 11:57:30 +0100
committerChris Campbell <chriscampbell89@gmail.com>2014-07-09 14:20:05 +0100
commit28beea6b951314f59ca6018dedc0d0cb87f0eac2 (patch)
tree9d14deef2eaeafecedfb7e7e386af1350c863fef /crawl-ref/source/monster.h
parent16e9270f56188ed993ec5a9755fe3874158ab40c (diff)
downloadcrawl-ref-28beea6b951314f59ca6018dedc0d0cb87f0eac2.tar.gz
crawl-ref-28beea6b951314f59ca6018dedc0d0cb87f0eac2.zip
Fix magical shields being unable to block most ranged attacks (#8772)
They checked that the player either had a shield equipped or had the bone plates mutation, so TSO's divine shield, Qazlal shielding and Condensation shield could all never block ranged attacks (except for those from ranged weapons, since those now follow the same codepath as melee attacks!).
Diffstat (limited to 'crawl-ref/source/monster.h')
-rw-r--r--crawl-ref/source/monster.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/monster.h b/crawl-ref/source/monster.h
index 786fd1b8c8..d0d2087267 100644
--- a/crawl-ref/source/monster.h
+++ b/crawl-ref/source/monster.h
@@ -460,6 +460,7 @@ public:
int stat_maxhp() const { return max_hit_points; }
int stealth() const;
+ bool shielded() const;
int shield_bonus() const;
int shield_block_penalty() const;
void shield_block_succeeded(actor *foe);