mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 06:26:13 +01:00
[Fix] 1.6.0 Roundup (#1581)
* Fixed sceneEnvironments possibly being undfined * Fixed companion * Removed Ferocity trigger
This commit is contained in:
parent
f1ebb7d1e1
commit
bae9470a4f
4 changed files with 3 additions and 11 deletions
|
|
@ -682,8 +682,6 @@ export default class DhCharacter extends BaseDataActor {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.companion.system.attack.roll.bonus = this.traits.instinct.value;
|
||||
}
|
||||
|
||||
this.resources.hope.value = Math.min(baseHope, this.resources.hope.max);
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ export default class DhCompanion extends BaseDataActor {
|
|||
if (selection.data[0] === 'damage') {
|
||||
this.attack.damage.parts[0].value.dice = adjustDice(this.attack.damage.parts[0].value.dice);
|
||||
} else {
|
||||
this.attack.range = adjustRange(this.attack.range);
|
||||
this.attack.range = adjustRange(this.attack.range).id;
|
||||
}
|
||||
break;
|
||||
case 'stress':
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ export default class DhScene extends Scene {
|
|||
|
||||
if (changes.flags?.daggerheart) {
|
||||
if (this._source.flags.daggerheart) {
|
||||
const unregisterTriggerData = this._source.flags.daggerheart.sceneEnvironments.reduce(
|
||||
const unregisterTriggerData = (this._source.flags.daggerheart.sceneEnvironments ?? []).reduce(
|
||||
(acc, env) => {
|
||||
if (!changes.flags.daggerheart.sceneEnvironments.includes(env)) acc.sceneEnvironments.push(env);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue