summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mstuff2.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-13 20:44:40 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-13 20:44:40 +0000
commita71e775e717dafe7504d13839dae7d94c40fe1da (patch)
tree1d340174cba852b5fdb3ddb6b4c57880421a9738 /crawl-ref/source/mstuff2.cc
parent56b0777e2a19983e10673d109023241964260957 (diff)
downloadcrawl-ref-a71e775e717dafe7504d13839dae7d94c40fe1da.tar.gz
crawl-ref-a71e775e717dafe7504d13839dae7d94c40fe1da.zip
Make TSO's abjuration protection properly increase with monster hit dice
instead of decrease (oops). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5788 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mstuff2.cc')
-rw-r--r--crawl-ref/source/mstuff2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mstuff2.cc b/crawl-ref/source/mstuff2.cc
index c5d3bb55f2..297db53724 100644
--- a/crawl-ref/source/mstuff2.cc
+++ b/crawl-ref/source/mstuff2.cc
@@ -2267,7 +2267,7 @@ static int _monster_abjure_square(const coord_def &pos,
// TSO and Trog's abjuration protection.
if (you.religion == GOD_SHINING_ONE)
{
- pow = pow * target->hit_dice / 30;
+ pow = pow * (30 - target->hit_dice) / 30;
if (pow < abj.duration)
simple_god_message(" protects your fellow warrior from evil magic!");
}