Corrected action.description fallback

This commit is contained in:
WBHarry 2025-12-22 21:09:46 +01:00
parent a9b23b099e
commit 582fb7daf1
3 changed files with 5 additions and 2 deletions

View file

@ -95,6 +95,9 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
prepareData() {
this.name = this.name || game.i18n.localize(CONFIG.DH.ACTIONS.actionTypes[this.type].name);
this.img = this.img ?? this.parent?.parent?.img;
/* Fallback to feature description */
this.description = this.description || this.parent?.description;
}
/**