mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
Check item validity when creating on an actor
This commit is contained in:
parent
11fbb4cce8
commit
4aca29d6c2
5 changed files with 23 additions and 0 deletions
|
|
@ -51,4 +51,8 @@ export default class DhEnvironment extends BaseDataActor {
|
|||
get features() {
|
||||
return this.parent.items.filter(x => x.type === 'feature');
|
||||
}
|
||||
|
||||
isItemValid(source) {
|
||||
return source.type === "feature";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue