Added so effects can be applied from a partner to a companion and vice versa

This commit is contained in:
WBHarry 2025-12-26 03:21:28 +01:00
parent fa21baf8bf
commit f3cf850355
6 changed files with 55 additions and 3 deletions

View file

@ -108,11 +108,21 @@ export default class DhCompanion extends BaseDataActor {
get proficiency() {
return this.partner?.system?.proficiency ?? 1;
}
isItemValid() {
return false;
}
allApplicableEffects(baseEffects) {
if (!this.partner) return baseEffects;
const effects = [
...Array.from(baseEffects),
...Array.from(this.partner.getBaseApplicableEffects()).filter(x => x.type === 'companion')
];
return effects;
}
prepareBaseData() {
this.attack.roll.bonus = this.partner?.system?.spellcastModifier ?? 0;