summaryrefslogtreecommitdiff
path: root/src/melee2.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
commitb15461dbcedf27f28a843f700ce0473d57364230 (patch)
treec8721bdfda19f26f2ae7b2171897a3c4e645100e /src/melee2.cc
parent0cd5370d552babada63b59003e7629c180d4eeaa (diff)
Remove redundant checks "around" artifact_p()
Turns out artifact_p() already performs the necessary checks.
Diffstat (limited to 'src/melee2.cc')
-rw-r--r--src/melee2.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/melee2.cc b/src/melee2.cc
index d519dd8a..130b74ee 100644
--- a/src/melee2.cc
+++ b/src/melee2.cc
@@ -6211,8 +6211,7 @@ static void process_monster(int m_idx, bool_ is_frien)
if (flags & TR_SLAY_EVIL) flg |= RF_EVIL;
/* The object cannot be picked up by the monster */
- if (artifact_p(o_ptr) || (r_ptr->flags & flg) ||
- (o_ptr->art_name))
+ if (artifact_p(o_ptr) || (r_ptr->flags & flg))
{
/* Only give a message for "take_item" */
if (r_ptr->flags & RF_TAKE_ITEM)