diff options
author | Chris Campbell <chriscampbell89@gmail.com> | 2014-07-09 11:57:30 +0100 |
---|---|---|
committer | Chris Campbell <chriscampbell89@gmail.com> | 2014-07-09 14:20:05 +0100 |
commit | 28beea6b951314f59ca6018dedc0d0cb87f0eac2 (patch) | |
tree | 9d14deef2eaeafecedfb7e7e386af1350c863fef /crawl-ref/source/player.h | |
parent | 16e9270f56188ed993ec5a9755fe3874158ab40c (diff) | |
download | crawl-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/player.h')
-rw-r--r-- | crawl-ref/source/player.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/player.h b/crawl-ref/source/player.h index 3d174c30c1..dfba7e43a3 100644 --- a/crawl-ref/source/player.h +++ b/crawl-ref/source/player.h @@ -689,6 +689,7 @@ public: int stat_maxhp() const { return hp_max; } int stealth() const { return check_stealth(); } + bool shielded() const; int shield_bonus() const; int shield_block_penalty() const; int shield_bypass_ability(int tohit) const; |