Changed to just adding 'isStandardAttack' in adversary data prep

This commit is contained in:
WBHarry 2026-02-26 11:30:54 +01:00
parent 32b6e732fe
commit 73941f1088
2 changed files with 4 additions and 11 deletions

View file

@ -191,6 +191,10 @@ export default class DhpAdversary extends DhCreature {
}
}
prepareDerivedData() {
this.attack.roll.isStandardAttack = true;
}
_getTags() {
const tags = [
game.i18n.localize(`DAGGERHEART.GENERAL.Tiers.${this.tier}`),
@ -406,10 +410,4 @@ export default class DhpAdversary extends DhCreature {
return result;
}
static migrateData(source) {
if (!source.attack.roll.isStandardAttack) source.attack.roll.isStandardAttack = true;
return super.migrateData(source);
}
}

View file

@ -11,11 +11,6 @@ export class DHActionRollData extends foundry.abstract.DataModel {
choices: CONFIG.DH.ACTOR.abilities,
label: 'DAGGERHEART.GENERAL.Trait.single'
}),
isStandardAttack: new fields.BooleanField({
required: true,
nullable: false,
initial: false
}),
difficulty: new fields.NumberField({ nullable: true, initial: null, integer: true, min: 0 }),
bonus: new fields.NumberField({ nullable: true, initial: null, integer: true }),
advState: new fields.StringField({