summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cloud.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/cloud.cc')
-rw-r--r--crawl-ref/source/cloud.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/cloud.cc b/crawl-ref/source/cloud.cc
index 96ae7d8916..65e6ae3c80 100644
--- a/crawl-ref/source/cloud.cc
+++ b/crawl-ref/source/cloud.cc
@@ -626,7 +626,7 @@ void in_a_cloud()
if (resist < 0)
hurted += ((random2avg(14, 2) + 3) * you.time_taken) / 10;
- hurted -= random2(player_AC());
+ hurted -= random2(you.armour_class());
if (hurted < 0)
hurted = 0;
@@ -680,7 +680,7 @@ void in_a_cloud()
if (resist < 0)
hurted += ((random2avg(14, 2) + 3) * you.time_taken) / 10;
- hurted -= random2(player_AC());
+ hurted -= random2(you.armour_class());
if (hurted < 0)
hurted = 0;