mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
[Fix] Compendium Item (#810)
* Corrected Emberwoven Armor * Fixed subclass regression
This commit is contained in:
parent
d571a89a7c
commit
c74c7aaedd
3 changed files with 11 additions and 11 deletions
|
|
@ -51,7 +51,7 @@ export default class DHSubclass extends BaseDataItem {
|
|||
async _preCreate(data, options, user) {
|
||||
if (this.actor?.type === 'character') {
|
||||
const dataUuid =
|
||||
(data.uuid ?? data.folder) ? `Compendium.daggerheart.subclasses.Item.${data._id}` : `Item.${data._id}`;
|
||||
data.uuid ?? (data.folder ? `Compendium.daggerheart.subclasses.Item.${data._id}` : `Item.${data._id}`);
|
||||
if (this.actor.system.class.subclass) {
|
||||
if (this.actor.system.multiclass.subclass) {
|
||||
ui.notifications.warn(game.i18n.localize('DAGGERHEART.UI.Notifications.subclassesAlreadyPresent'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue