fix status effect finder
This commit is contained in:
parent
06f26c264c
commit
2765a53815
@ -132,7 +132,7 @@ export class PowerEffect {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static async getStatus(label, name, favorite = true) {
|
static async getStatus(label, name, favorite = true) {
|
||||||
const effect = foundry.utils.deepClone(CONFIG.statusEffects.find((se) => se.label === label));
|
const effect = foundry.utils.deepClone(CONFIG.statusEffects.find((se) => se.label === label || se.name === label));
|
||||||
effect.name = 'name' in effect ? effect.name : effect.label;
|
effect.name = 'name' in effect ? effect.name : effect.label;
|
||||||
if (!('flags' in effect)) {
|
if (!('flags' in effect)) {
|
||||||
effect.flags = {};
|
effect.flags = {};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user