mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-13 12:11:07 +01:00
Added DomainTouched support
This commit is contained in:
parent
7429369212
commit
8ab795b6ba
15 changed files with 62 additions and 12 deletions
|
|
@ -20,7 +20,10 @@ export default class DhActiveEffect extends foundry.documents.ActiveEffect {
|
|||
}
|
||||
|
||||
if (this.parent?.type === 'domainCard') {
|
||||
return this.parent.system.inVault && !this.parent.system.vaultActive;
|
||||
const vaultSupressed = this.parent.system.vaultSupressed;
|
||||
const domainTouchedSupressed = this.parent.system.domainTouchedSuppressed;
|
||||
|
||||
return vaultSupressed || domainTouchedSupressed;
|
||||
}
|
||||
|
||||
return super.isSuppressed;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue