summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ranged_attack.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-07-17 20:47:35 -0400
committerNeil Moore <neil@s-z.org>2014-07-17 20:47:35 -0400
commitb452ec0a2d4bc139418f597e716c06aec022d237 (patch)
treee570b6d4c0c2133af05adaca60759aa873041884 /crawl-ref/source/ranged_attack.cc
parent7f5b64c0f81cbeef40bf9a9a3de7cf23c0ac454f (diff)
downloadcrawl-ref-b452ec0a2d4bc139418f597e716c06aec022d237.tar.gz
crawl-ref-b452ec0a2d4bc139418f597e716c06aec022d237.zip
Make projectiles not hit themselves (Humans Among Us)
Don't use a reflexive pronoun for attacker == defender when the subject isn't the attacker.
Diffstat (limited to 'crawl-ref/source/ranged_attack.cc')
-rw-r--r--crawl-ref/source/ranged_attack.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/ranged_attack.cc b/crawl-ref/source/ranged_attack.cc
index 42e56c84be..5d5f53b2e0 100644
--- a/crawl-ref/source/ranged_attack.cc
+++ b/crawl-ref/source/ranged_attack.cc
@@ -870,7 +870,8 @@ void ranged_attack::announce_hit()
mprf("%s %s %s%s%s%s",
projectile->name(DESC_THE).c_str(),
attack_verb.c_str(),
- defender_name().c_str(),
+ // Not defender_name because reflexive is bad here.
+ def_name(DESC_THE).c_str(),
damage_done > 0 && stab_attempt && stab_bonus > 0
? " in a vulnerable spot"
: "",