summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index e503e5b4a2..7ee41d7e46 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -4093,7 +4093,8 @@ bool enchant_armour(int &ac_change, bool quiet, item_def &arm)
// Even if not affected, it may be uncursed.
if (!is_enchantable_armour(arm, false)
- || arm.plus >= 3 && x_chance_in_y(arm.plus, 8))
+ || arm.plus > MAX_SEC_ENCHANT
+ && x_chance_in_y(arm.plus, MAX_ARM_ENCHANT))
{
if (is_cursed)
{