Add initiative rolls
This commit is contained in:
@@ -32,11 +32,10 @@ export default class OathHammerTrait extends foundry.abstract.TypeDataModel {
|
||||
static migrateData(source) {
|
||||
// Migrate old abilityType field → traitType
|
||||
if (source.abilityType !== undefined && source.traitType === undefined) {
|
||||
const map = { "class-ability": "class-trait", "lineage-trait": "special-trait" }
|
||||
const map = { "class-ability": "class-trait" }
|
||||
source.traitType = map[source.abilityType] ?? "special-trait"
|
||||
}
|
||||
// Migrate old traitType values
|
||||
if (source.traitType === "lineage-trait") source.traitType = "special-trait"
|
||||
if (source.traitType === "class-ability") source.traitType = "class-trait"
|
||||
return super.migrateData(source)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user