mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
Move attack type fix to actor migratedata
This commit is contained in:
parent
2ef36401d5
commit
fc8c6513dd
2 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue