diff options
author | Chris Campbell <chriscampbell89@gmail.com> | 2014-07-09 14:46:15 +0100 |
---|---|---|
committer | Chris Campbell <chriscampbell89@gmail.com> | 2014-07-09 14:46:15 +0100 |
commit | fa2d839c13c5669c68d9502c238c9a5424e6e8cd (patch) | |
tree | 4513a85621d1954dfce16611e180586ccbed3cc0 /crawl-ref/source/monster.cc | |
parent | f55f5463a87b8545ee106a3b8c2b00a0126b6f21 (diff) | |
download | crawl-ref-fa2d839c13c5669c68d9502c238c9a5424e6e8cd.tar.gz crawl-ref-fa2d839c13c5669c68d9502c238c9a5424e6e8cd.zip |
Don't let monsters sometimes block attacks while incapacitated
They could very rarely block melee attacks.
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r-- | crawl-ref/source/monster.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc index 8bcc42e6e2..d4cd23f7c8 100644 --- a/crawl-ref/source/monster.cc +++ b/crawl-ref/source/monster.cc @@ -3292,9 +3292,8 @@ int monster::shield_bonus() const const item_def *shld = const_cast<monster* >(this)->shield(); if (shld && get_armour_slot(*shld) == EQ_SHIELD) { - // Note that 0 is not quite no-blocking. if (incapacitated()) - return 0; + return -100; int shld_c = property(*shld, PARM_AC) + shld->plus * 2; shld_c = shld_c * 2 + (body_size(PSIZE_TORSO) - SIZE_MEDIUM) |