Skip to content

Commit

Permalink
Fix Chase Item not sending skill rolls
Browse files Browse the repository at this point in the history
  • Loading branch information
snap01 committed Jan 18, 2025
1 parent 28a69ac commit 0cb6300
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions module/chat/cards/chase-obstacle.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ export class ChaseObstacleCard extends EnhancedChatCard {
get weaponsOptions () {
const weapons = []
this.participant.actor?.itemTypes?.weapon?.forEach(w => {
let formula = w.data.data.range.normal.damage
let formula = w.system.range.normal.damage
let db = this.participant.actor.db
if (db === null || Number(db) === 0) {
db = ''
Expand All @@ -554,8 +554,8 @@ export class ChaseObstacleCard extends EnhancedChatCard {
}

if (db && !db.startsWith('-')) db = '+' + db
if (w.data.data.properties.addb) formula = formula + db
if (w.data.data.properties.ahbd) formula = formula + db + '/2'
if (w.system.properties.addb) formula = formula + db
if (w.system.properties.ahbd) formula = formula + db + '/2'
weapons.push({
name: `${w.data.name} (${formula})`,
damage: formula,
Expand Down Expand Up @@ -834,7 +834,7 @@ export class ChaseObstacleCard extends EnhancedChatCard {
} else {
if (typeof this.data.armor === 'undefined' && this.participant.actor) {
this.data.armor =
this.participant.actor.data.data.attribs.armor.value || 0
this.participant.actor.system.attribs.armor.value || 0
}
}

Expand Down

0 comments on commit 0cb6300

Please sign in to comment.