summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/mstuff2.cc2
-rw-r--r--crawl-ref/source/spells1.cc2
2 files changed, 2 insertions, 2 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!");
}
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index ad83d24889..3b1ccd019e 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -1259,7 +1259,7 @@ void abjuration(int pow)
// TSO and Trog's abjuration protection.
if (monster->god == GOD_SHINING_ONE)
{
- sockage = sockage * monster->hit_dice / 45;
+ sockage = sockage * (30 - monster->hit_dice) / 45;
if (sockage < abj.duration)
{
simple_god_message(" protects a fellow warrior from your evil magic!",