mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
Marking up the places that need changing for bug #1160
This commit is contained in:
parent
05dec9fcea
commit
12d6b7fa4c
3 changed files with 3 additions and 0 deletions
|
|
@ -196,6 +196,7 @@ export default class DhActiveEffect extends foundry.documents.ActiveEffect {
|
|||
prepareDerivedData() {
|
||||
/* Preventing subclass features from transferring to actor if they do not have the right subclass advancement */
|
||||
if (this.parent?.type === 'feature') {
|
||||
// TODO(nsalyzyn): Reuse this code for elsewhere
|
||||
const origSubclassParent = this.parent.system.originItemType === 'subclass';
|
||||
if (origSubclassParent) {
|
||||
const subclass = this.parent.parent.items.find(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue