71
editsMore actions
no edit summary
No edit summary |
No edit summary |
||
Line 52: | Line 52: | ||
if not (frame.args.modifier == nil) then | if not (frame.args.modifier == nil) then | ||
damage_str = string.format("%s %d %s", table.concat(dice, " + "), frame.args.modifier, avg_str) | if frame.args.modifier > 0 then | ||
damage_str = string.format("%s +%d %s", table.concat(dice, " + "), frame.args.modifier, avg_str) | |||
else | |||
damage_str = string.format("%s %d %s", table.concat(dice, " + "), frame.args.modifier, avg_str) | |||
end | |||
else | else | ||
damage_str = string.format("%s %s", table.concat(dice, " + "), avg_str) | damage_str = string.format("%s %s", table.concat(dice, " + "), avg_str) |