Cleanup of 'pc' references

This commit is contained in:
WBHarry 2025-06-08 10:49:29 +02:00
parent 1f50e9533a
commit 1445baa556
14 changed files with 38 additions and 117 deletions

View file

@ -30,7 +30,7 @@ export default class DHDomainCard extends BaseDataItem {
const allowed = await super._preCreate(data, options, user);
if (allowed === false) return;
if (this.actor?.type === 'pc') {
if (this.actor?.type === 'character') {
if (!this.actor.system.class.value) {
ui.notifications.error(game.i18n.localize('DAGGERHEART.Item.Errors.NoClassSelected'));
return false;