summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index be37c09cfb..d26d1ee36b 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -3911,6 +3911,13 @@ void melee_attack::mons_perform_attack_rounds()
if (special_damage > 0)
defender->hurt(attacker, special_damage);
}
+
+ item_def *weap = atk->mslot_item(MSLOT_WEAPON);
+ if (weap && weap->cursed() && is_range_weapon(*weap)
+ && !(weap->flags & ISFLAG_KNOW_CURSE))
+ {
+ set_ident_flags( *weap, ISFLAG_KNOW_CURSE );
+ }
}
}