Add damage management and DR for monsters also
All checks were successful
Release Creation / build (release) Successful in 1m48s
All checks were successful
Release Creation / build (release) Successful in 1m48s
This commit is contained in:
@@ -278,6 +278,7 @@ export default class LethalFantasyRoll extends Roll {
|
||||
|
||||
} else if (options.rollType.includes("monster-damage")) {
|
||||
options.rollName = options.rollTarget.name
|
||||
options.isDamage = true
|
||||
hasModifier = true
|
||||
hasChangeDice = false
|
||||
options.rollTarget.value = options.rollTarget.damageModifier
|
||||
@@ -1151,6 +1152,15 @@ export default class LethalFantasyRoll extends Roll {
|
||||
damageM: weapon.system?.damage?.damageM
|
||||
}
|
||||
console.log("Weapon damage options:", weaponDamageOptions)
|
||||
} else if (this.type === "monster-attack" && this.rollTarget) {
|
||||
weaponDamageOptions = {
|
||||
weaponId: this.rollTarget.rollKey,
|
||||
weaponName: this.rollTarget.name,
|
||||
damageFormula: this.rollTarget.damageDice,
|
||||
damageModifier: this.rollTarget.damageModifier,
|
||||
isMonster: true
|
||||
}
|
||||
console.log("Monster damage options:", weaponDamageOptions)
|
||||
}
|
||||
|
||||
const cardData = {
|
||||
|
||||
Reference in New Issue
Block a user