mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-06 04:44:16 +02:00
Fixed translations. Fixed actions without Effects causing errors in Homebrew ItemFeatures
This commit is contained in:
parent
607ee3b580
commit
702c9e0b6a
6 changed files with 10 additions and 9 deletions
|
|
@ -188,8 +188,9 @@ export default class SettingFeatureConfig extends HandlebarsApplicationMixin(App
|
|||
if (type === 'effect') {
|
||||
const move = foundry.utils.getProperty(this.settings, this.movePath);
|
||||
for (const action of move.actions) {
|
||||
const remainingEffects = action.effects.filter(x => x._id !== id);
|
||||
if (action.effects.length !== remainingEffects.length) {
|
||||
const actionEffects = action.effects ?? [];
|
||||
const remainingEffects = actionEffects.filter(x => x._id !== id);
|
||||
if (actionEffects.length !== remainingEffects.length) {
|
||||
await action.update({
|
||||
effects: remainingEffects.map(x => {
|
||||
const { _id, ...rest } = x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue