Corrected phrasing for attack.

This commit is contained in:
raeleus 2024-09-17 20:52:01 -07:00
parent 5a6b7784bd
commit 3caaf01bf3

View file

@ -1028,8 +1028,8 @@ function doAttack(command) {
else state.prefix = `\n[Enemy AC: ${targetRoll}. Attack roll: ${dieText}. ${score >= targetRoll ? "Success!" : "Failure!"}]\n`
var text
if (score + modifier >= targetRoll) text = `\n${character.name} successfully hit the ${targetText}!`
else text = `\n${character.name} ${tryWord} to hit the ${targetText}. ${character.name} ${missWord}!`
if (score + modifier >= targetRoll) text = `\n${character.name} successfully hit ${targetText}!`
else text = `\n${character.name} ${tryWord} to hit ${targetText}. ${character.name} ${missWord}!`
if (score == 20) text += " Critical success! Your attack is exceptionally damaging!"
else if (score == 1) text += " Critical failure! Your attack missed in a spectacular way!"
@ -1626,4 +1626,4 @@ function doHelp(command) {
return " "
}
modifier(text)
modifier(text)