From 3947969b0bdd2e27e2e6c98efc4850e9caae974c Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sat, 12 Jan 2008 17:58:31 +0000 Subject: Fixed shield bonus when confused (syllogism). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3259 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index ed1f96de09..8ce441481a 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -5874,6 +5874,10 @@ int player::shield_bonus() const const int shield_class = player_shield_class(); if (!shield_class) return (-100); + + // Note that 0 is not quite no-blocking. + if (incapacitated()) + return (0); int stat = 0; if (const item_def *sh = const_cast(this)->shield()) -- cgit v1.2.3-54-g00ecf