summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 320cce9ef6..31d1755bd6 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -1601,10 +1601,8 @@ int player_prot_life(bool calc_unid)
pl += you.mutation[MUT_NEGATIVE_ENERGY_RESISTANCE];
// TSO's protection
- if (you.religion == GOD_SHINING_ONE)
- {
- pl += you.piety / 50;
- }
+ if (you.religion == GOD_SHINING_ONE && you.piety > pl * 50)
+ pl = you.piety / 50;
if (pl > 3)
pl = 3;