[PR] Removing a potential reference error when creating a tag team roll (#1430)

This commit is contained in:
Nick Salyzyn 2025-12-20 15:14:23 -07:00 committed by GitHub
parent fe80b4d0f8
commit b8e08fccd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -220,8 +220,8 @@ export default class TagTeamDialog extends HandlebarsApplicationMixin(Applicatio
!roll.system.isCritical && criticalRoll
? (await getCritDamageBonus(damage.formula)) + damage.total
: damage.total;
const updatedDamageParts = damage.parts;
if (systemData.damage[key]) {
const updatedDamageParts = damage.parts;
if (!roll.system.isCritical && criticalRoll) {
for (let part of updatedDamageParts) {
const criticalDamage = await getCritDamageBonus(part.formula);