Fixed beastform basic attack being available (#2072)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run

This commit is contained in:
WBHarry 2026-07-10 04:56:47 +02:00 committed by GitHub
parent e55ef9fd9e
commit 1e30ea42ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -208,6 +208,16 @@ export default class TagTeamDialog extends HandlebarsApplicationMixin(Applicatio
const rollOptions = []; const rollOptions = [];
const damageRollOptions = []; const damageRollOptions = [];
if (actor?.system.usedUnarmed) {
damageRollOptions.push({
value: actor.system.attack.uuid,
label: actor.system.usedUnarmed.name,
group: actor.name,
baseAction: actor.system.attack
});
}
for (const item of actor?.items ?? []) { for (const item of actor?.items ?? []) {
if (!item.system.metadata.hasActions) continue; if (!item.system.metadata.hasActions) continue;
const actions = [...item.system.actions, ...(item.system.attack ? [item.system.attack] : [])]; const actions = [...item.system.actions, ...(item.system.attack ? [item.system.attack] : [])];