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.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 93de92044b..8c4c4cbabc 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -1052,10 +1052,12 @@ bool you_attack(int monster_attacked, bool unarmed_attacks)
{
hit = true;
- snprintf( info, INFO_SIZE, "You %s ", damage_noise);
- strcat(info, ptr_monam(defender, DESC_NOCAP_THE));
- strcat(info, ", but do no damage.");
- mpr(info);
+ if ( !ur_armed || melee_brand != SPWPN_VORPAL )
+ {
+ snprintf(info, INFO_SIZE, "You %s %s, but do no damage.",
+ damage_noise, ptr_monam(defender, DESC_NOCAP_THE));
+ mpr(info);
+ }
}
}
else
@@ -1485,6 +1487,9 @@ bool you_attack(int monster_attacked, bool unarmed_attacks)
case SPWPN_VORPAL:
specdam = 1 + random2(damage_done) / 2;
+ if (damage_done < 1)
+ mprf(MSGCH_PLAIN, "You strike %s.",
+ ptr_monam(defender, DESC_NOCAP_THE));
break;
case SPWPN_VAMPIRICISM: