Fix/attack type migrate data (#949)

* Temp ActionField attack type missing

* Move missing attack type to getModel

* Move attack type fix to actor migratedata
This commit is contained in:
Dapoulp 2025-08-15 21:43:33 +02:00 committed by GitHub
parent ba42892eed
commit 16e931179f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -25,6 +25,14 @@ export default class DhpActor extends Actor {
/* -------------------------------------------- */
/** @inheritDoc */
static migrateData(source) {
if(source.system?.attack && !source.system.attack.type) source.system.attack.type = "attack";
return super.migrateData(source);
}
/* -------------------------------------------- */
/**@inheritdoc */
static getDefaultArtwork(actorData) {
const { type } = actorData;