Fix ranged attacks again
Release Creation / build (release) Has been cancelled

This commit is contained in:
2026-05-24 09:41:06 +02:00
parent 38eb1a8d3d
commit c217490a5b
29 changed files with 94 additions and 148 deletions
+6 -1
View File
@@ -338,6 +338,10 @@ export default class LethalFantasyRoll extends Roll {
let modifier = "+0"
let targetName
// True for any ranged attack: PC weapon (ranged type) or monster attack (ranged mode)
const isRangedAttack = (options.rollType === "weapon-attack" && options.rollTarget?.weapon?.system?.weaponType === "ranged")
|| (options.rollType === "monster-attack" && options.rollTarget?.attackMode === "ranged")
let dialogContext = {
rollType: options.rollType,
rollTarget: options.rollTarget,
@@ -362,7 +366,8 @@ export default class LethalFantasyRoll extends Roll {
modifier,
saveSpell: false,
favor: "none",
targetName
targetName,
isRangedAttack
}
let rollContext
if (options.rollContext) {