This commit is contained in:
@@ -356,6 +356,11 @@ export default class LethalFantasyCharacter extends foundry.abstract.TypeDataMod
|
||||
}
|
||||
}
|
||||
|
||||
if (weaponsChoices.length === 0) {
|
||||
ui.notifications.warn(`${this.parent.name} has no weapons or spells available for combat. Add a weapon to the character sheet first.`)
|
||||
return
|
||||
}
|
||||
|
||||
let roll = await LethalFantasyRoll.promptCombatAction({
|
||||
actorId: this.parent.id,
|
||||
actorName: this.parent.name,
|
||||
|
||||
@@ -284,7 +284,6 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
|
||||
// In all cases
|
||||
if (rollTarget) {
|
||||
rollTarget.tokenId = tokenId
|
||||
console.log(rollTarget)
|
||||
await this.roll(rollType, rollTarget, defenderId, defenderTokenId, extraShieldDr)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user