From 0645520057d5b630626c5e6ce7bf3099c9500ea1 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sun, 1 Jul 2007 13:07:35 +0000 Subject: [1745789] Fixed shield blocking happening without shield (Eino). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1705 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/mon-util.cc | 2 +- crawl-ref/source/player.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 7cfbcb5cc0..42e95001b3 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -2473,7 +2473,7 @@ int monsters::shield_bonus() const const int shld_c = property(*shld, PARM_AC); return (random2(shld_c + random2(hit_dice / 2)) / 2); } - return (0); + return (-100); } int monsters::shield_block_penalty() const diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 2a85955949..dcf781a9b4 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -4980,7 +4980,7 @@ int player::shield_bonus() const { const int shield_class = player_shield_class(); if (!shield_class) - return (0); + return (-100); int stat = 0; if (const item_def *sh = const_cast(this)->shield()) -- cgit v1.2.3-54-g00ecf