diff options
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r-- | crawl-ref/source/fight.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index 33d81fbafb..ddda531a92 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -2528,7 +2528,7 @@ int melee_attack::mons_attk_delay() bool melee_attack::attack_shield_blocked(bool verbose) { - if (!defender_shield) + if (!defender_shield && defender->atype() != ACT_PLAYER) return (false); if (defender->incapacitated()) @@ -2541,6 +2541,11 @@ bool melee_attack::attack_shield_blocked(bool verbose) if (attacker->invisible() && !defender->can_see_invisible()) pro_block /= 3; +#ifdef DEBUG_DIAGNOSTICS + mprf(MSGCH_DIAGNOSTICS, "Pro-block: %d, Con-block: %d", + pro_block, con_block); +#endif + if (pro_block >= con_block) { perceived_attack = true; |