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.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index f50b52c696..03208d6976 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -3194,12 +3194,14 @@ int melee_attack::mons_to_hit()
static void wielded_weapon_check(const item_def *weapon)
{
- if (weapon &&
- (weapon->base_type != OBJ_WEAPONS
- || is_range_weapon(*weapon)))
- {
- mpr("You might want to wield a more suitable implement when attacking monsters.", MSGCH_WARN);
- learned_something_new(TUT_WIELD_WEAPON); // for tutorial Rangers
+ if (you.received_weapon_warning == false &&
+ weapon &&
+ (weapon->base_type != OBJ_WEAPONS || is_range_weapon(*weapon)))
+ {
+ mpr("You might want to wield a more suitable implement when "
+ "attacking monsters.", MSGCH_WARN);
+ learned_something_new(TUT_WIELD_WEAPON); // for tutorial Rangers
+ you.received_weapon_warning = true;
}
}