fix fly
This commit is contained in:
parent
0d74ae787d
commit
4b087916b3
@ -464,8 +464,12 @@ export class PowerEffect {
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get basePrimaryEffect() {
|
||||||
|
return this.createEffectDocument(this.icon, this.effectName, this.getPrimaryEffectChanges());
|
||||||
|
}
|
||||||
|
|
||||||
async createPrimaryEffect(maintId) {
|
async createPrimaryEffect(maintId) {
|
||||||
const doc = this.createEffectDocument(this.icon, this.effectName, this.getPrimaryEffectChanges());
|
const doc = this.basePrimaryEffect;
|
||||||
if (moduleHelpers.useVAE) {
|
if (moduleHelpers.useVAE) {
|
||||||
doc.flags['visual-active-effects'] = { data: { content: this.description } };
|
doc.flags['visual-active-effects'] = { data: { content: this.description } };
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -30,10 +30,6 @@ export class FlyEffect extends PowerEffect {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
get usePrimaryEffect() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
get modifiers() {
|
get modifiers() {
|
||||||
const mods = super.modifiers;
|
const mods = super.modifiers;
|
||||||
mods.push({
|
mods.push({
|
||||||
@ -48,20 +44,18 @@ export class FlyEffect extends PowerEffect {
|
|||||||
return mods;
|
return mods;
|
||||||
}
|
}
|
||||||
|
|
||||||
async createSecondaryEffects(maintId) {
|
async parseValues() {
|
||||||
const docs = await super.createSecondaryEffects(maintId);
|
await super.parseValues();
|
||||||
const docLabel = 'SWADE.Flying';
|
const docLabel = 'SWADE.Flying';
|
||||||
const docName = 'Flying';
|
const docName = 'Flying';
|
||||||
const doc = await PowerEffect.getStatus(docLabel, docName, false);
|
const doc = await PowerEffect.getStatus(docLabel, docName, false);
|
||||||
doc.description = this.description;
|
doc.description = `<p>From <strong>${this.source.name}</strong> casting <em>${this.name}</em></p>`;
|
||||||
doc.flags = mergeObject(doc.flags ?? {}, {
|
doc.flags = mergeObject(doc.flags ?? {}, { [moduleName]: { powerEffect: true } });
|
||||||
[moduleName]: {
|
(doc.duration = { rounds: 99 }), (this.baseEffectDoc = doc);
|
||||||
powerEffect: true,
|
}
|
||||||
maintId,
|
|
||||||
},
|
get basePrimaryEffect() {
|
||||||
});
|
return this.baseEffectDoc;
|
||||||
docs.push(doc);
|
|
||||||
return docs;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get _pace() {
|
get _pace() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user