mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
Companions can't be put into CombatState anymore. Companions now have a Action Roll button
This commit is contained in:
parent
ee786544c7
commit
9b3d1cddc4
4 changed files with 66 additions and 0 deletions
|
|
@ -13,6 +13,9 @@ export default class DHTokenHUD extends foundry.applications.hud.TokenHUD {
|
|||
|
||||
async _prepareContext(options) {
|
||||
const context = await super._prepareContext(options);
|
||||
const nonCombatTypes = ['environment', 'companion'];
|
||||
|
||||
context.canToggleCombat = nonCombatTypes.includes(this.actor.type) ? false : context.canToggleCombat;
|
||||
context.systemStatusEffects = Object.keys(context.statusEffects).reduce((acc, key) => {
|
||||
const effect = context.statusEffects[key];
|
||||
if (effect.systemEffect) acc[key] = effect;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue