Various enhancements + fixes
This commit is contained in:
@ -282,6 +282,7 @@ export default class LethalFantasyRoll extends Roll {
|
||||
titleFormula = `${dice}E`
|
||||
}
|
||||
|
||||
// Specific pain case
|
||||
if (options.rollType === "save" && options.rollTarget.rollKey === "pain") {
|
||||
baseFormula = options.rollTarget.rollDice
|
||||
titleFormula = `${dice}`
|
||||
@ -289,6 +290,11 @@ export default class LethalFantasyRoll extends Roll {
|
||||
fullModifier = 0
|
||||
}
|
||||
|
||||
// Specific pain/poison/contagion case
|
||||
if (options.rollType === "save" && options.rollTarget.rollKey.includes(["pain", "poison", "contagion"])) {
|
||||
hasD30 = false
|
||||
}
|
||||
|
||||
maxValue = Number(baseFormula.match(/\d+$/)[0]) // Update the max value agains
|
||||
|
||||
const rollData = {
|
||||
|
Reference in New Issue
Block a user