aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd/cmd_manipulate.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cmd/cmd_manipulate.cc b/src/cmd/cmd_manipulate.cc
index 18df098..904615b 100644
--- a/src/cmd/cmd_manipulate.cc
+++ b/src/cmd/cmd_manipulate.cc
@@ -101,8 +101,14 @@ namespace cmd {
}
auto dmg = entry::rollDmg(*w, wants2h);
text << entry::formatDmg(*w, *c1, dmg) << std::endl;
+ bool isFirst = true;
for(auto d : dmg) {
- text << " " << healOrDamageProgrammatic(p2, false, d.rolled, d.dmg_type, {});
+ int amnt = d.rolled;
+ if(isFirst) {
+ amnt += w->getDamageBonus(*c1);
+ isFirst = false;
+ }
+ text << " " << healOrDamageProgrammatic(p2, false, amnt, d.dmg_type, {});
}
} else {
text << " Miss (" << (rolled + bonus) << " to hit < " << ac << " ac)" << std::endl;