Various fixes for spell and ranged attacks
This commit is contained in:
@@ -262,6 +262,7 @@ Hooks.on("renderChatMessageHTML", (message, html, data) => {
|
||||
const isRangedAttack = (rollTargetOptions?.attackMode === "ranged")
|
||||
|| (attacker?.type === "monster" && attacker.system.attackMode === "ranged")
|
||||
|| (attackerWeapon?.system?.weaponType === "ranged")
|
||||
|| (rollTargetOptions?.isRangedAttack === true)
|
||||
|
||||
const defenseMsg = {
|
||||
type: "requestDefense",
|
||||
@@ -403,6 +404,7 @@ Hooks.on("renderChatMessageHTML", (message, html, data) => {
|
||||
}
|
||||
roll.options.diceResults = diceResults
|
||||
roll.options.rollTotal = roll.total
|
||||
if (game?.dice3d) await game.dice3d.showForRoll(roll, game.user, true)
|
||||
await roll.toMessage()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user