summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index a407337fc5..eebf239bb2 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -2584,9 +2584,9 @@ bool gives_resistance(const item_def &item)
return (false);
// Check for randart resistances.
- for (int rap = ARTP_FIRE; rap <= ARTP_CAN_TELEPORT; rap++)
+ for (int rap = ARTP_FIRE; rap <= ARTP_BERSERK; rap++)
{
- if (rap == ARTP_MAGIC || rap >= ARTP_INVISIBLE && rap != ARTP_CAN_TELEPORT)
+ if (rap == ARTP_MAGIC || rap >= ARTP_INVISIBLE)
continue;
if (artefact_wpn_property( item, static_cast<artefact_prop_type>(rap) ))