summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/attack.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-07-09 20:05:37 +0100
committerChris Campbell <chriscampbell89@gmail.com>2014-07-09 20:05:37 +0100
commit8a68b8832c0205cbe584405a54a5ddbe0426e875 (patch)
tree61f75657e93cb6d1169a44b21c819ef45ba49cd8 /crawl-ref/source/attack.cc
parent4e5aae5fdf2f8f4ccd531511ff9b10e8cb79a92c (diff)
downloadcrawl-ref-8a68b8832c0205cbe584405a54a5ddbe0426e875.tar.gz
crawl-ref-8a68b8832c0205cbe584405a54a5ddbe0426e875.zip
Apply shadow form damage reduction to ranged attacks
Diffstat (limited to 'crawl-ref/source/attack.cc')
-rw-r--r--crawl-ref/source/attack.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/attack.cc b/crawl-ref/source/attack.cc
index 6e8faa0a99..20c5b9c272 100644
--- a/crawl-ref/source/attack.cc
+++ b/crawl-ref/source/attack.cc
@@ -1341,6 +1341,10 @@ int attack::player_apply_slaying_bonuses(int damage, bool aux)
int attack::player_apply_final_multipliers(int damage)
{
+ // Can't affect much of anything as a shadow.
+ if (you.form == TRAN_SHADOW)
+ damage = div_rand_round(damage, 2);
+
return damage;
}