Working armor application

This commit is contained in:
WBHarry 2026-02-09 18:23:30 +01:00
parent 7036a53c71
commit 514e0260eb
9 changed files with 99 additions and 18 deletions

View file

@ -15,7 +15,7 @@ export default class DhActiveEffect extends foundry.documents.ActiveEffect {
}
// Then apply the standard suppression rules
if (['weapon', 'armor'].includes(this.parent?.type)) {
if (['weapon', 'armor'].includes(this.parent?.type) && this.transfer) {
return !this.parent.system.equipped;
}

View file

@ -992,4 +992,8 @@ export default class DhpActor extends Actor {
return allTokens;
}
applyActiveEffects(phase) {
super.applyActiveEffects(phase);
}
}