summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-12 16:08:49 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-12 16:08:49 +0000
commitb7fbb8da9606f9a8e1ad11ffd734827cb9baf911 (patch)
tree62865a51f96e1aee19da0a8088c36323debcf607 /crawl-ref/source/directn.cc
parentdb1637840912b714a5c3c636728e4d0f59e662b1 (diff)
downloadcrawl-ref-b7fbb8da9606f9a8e1ad11ffd734827cb9baf911.tar.gz
crawl-ref-b7fbb8da9606f9a8e1ad11ffd734827cb9baf911.zip
AutoID the curse status of a monster wielded cursed ranged weapon if said
monster is trying to hit you with it. Don't give away what weapon a monster is carrying if it is not actually wielding it, especially not in the form of "A goblin, wielding a sling." that is shortly followed by "The goblin wields a sling." :p git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5763 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r--crawl-ref/source/directn.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index cd5901145f..0437b72ca0 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -2062,7 +2062,7 @@ static std::string _describe_monster_weapon(const monsters *mons)
name1 = weap->name(DESC_NOCAP_A, false, false, true,
false, ISFLAG_KNOW_CURSE);
}
- if (alt && (!weap || mons_wields_two_weapons(mons)))
+ if (alt && mons_wields_two_weapons(mons))
{
name2 = alt->name(DESC_NOCAP_A, false, false, true,
false, ISFLAG_KNOW_CURSE);