Corredction sur attack ranged
Release Creation / build (release) Successful in 1m19s

This commit is contained in:
2026-05-03 10:06:44 +02:00
parent c8ce840e98
commit a3fc0a42b9
27 changed files with 94 additions and 88 deletions
+2 -1
View File
@@ -192,6 +192,7 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
const attacksSet = this.attackMode === "ranged" ? this.rangedAttacks : this.attacks
rollTarget = foundry.utils.duplicate(attacksSet[rollKey])
rollTarget.rollKey = rollKey
rollTarget.attackMode = this.attackMode
if (rollType === "monster-defense") {
rollTarget.isRangedDefense = game.lethalFantasy?.nextDefenseData?.isRanged ?? false
}
@@ -269,7 +270,7 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
return
}
rollTarget = skill
rollTarget.weapon = weapon
rollTarget.weapon = foundry.utils.duplicate(weapon)
rollTarget.weaponSkillModifier = skill.weaponSkillModifier
rollTarget.rollKey = rollKey
rollTarget.combat = foundry.utils.duplicate(this.combat)