diff --git a/package.json b/package.json index 21c95c9..f003d00 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "t20-sheet-builder", - "version": "1.25.6", + "version": "1.25.7", "main": "build/index.js", "types": "build/index.d.ts", "exports": "./build/index.js", diff --git a/src/domain/entities/Character/CharacterAttackTriggeredEffect.ts b/src/domain/entities/Character/CharacterAttackTriggeredEffect.ts index e415cf9..4ea54d5 100644 --- a/src/domain/entities/Character/CharacterAttackTriggeredEffect.ts +++ b/src/domain/entities/Character/CharacterAttackTriggeredEffect.ts @@ -7,7 +7,7 @@ import {type SheetInterface} from '../Sheet/SheetInterface'; import {type CharacterModifierName} from './CharacterModifiers'; import {type CharacterAttackModifiers} from './CharactterAttackModifiers'; -export type EnabledEffectModifiersIndexes = Partial>; +export type EnabledEffectModifiersIndexes = Partial>; export type SerializedCharacterAttackTriggeredEffect = { effect: SerializedTriggeredEffect; diff --git a/src/domain/entities/Role/Knight/Bulwark/BulwarkEffect.ts b/src/domain/entities/Role/Knight/Bulwark/BulwarkEffect.ts index 03b31b0..f6c14c7 100644 --- a/src/domain/entities/Role/Knight/Bulwark/BulwarkEffect.ts +++ b/src/domain/entities/Role/Knight/Bulwark/BulwarkEffect.ts @@ -30,7 +30,7 @@ export class BulwarkEffect extends TriggeredEffect { modifiers: TriggeredEffectModifiers; modifiersIndexes: EnabledEffectModifiersIndexes; }, activation: TriggeredEffectActivation): {manaCost?: ManaCost | undefined} { - modifiersIndexes.defend = modifiers.defense?.fixed.add(new FixedModifier(this.source, 2)); + modifiersIndexes.defense = modifiers.defense?.fixed.add(new FixedModifier(this.source, 2)); return { manaCost: new ManaCost(1), @@ -38,9 +38,9 @@ export class BulwarkEffect extends TriggeredEffect { } override disable({modifiersIndexes, modifiers}: {modifiers: TriggeredEffectModifiers; modifiersIndexes: EnabledEffectModifiersIndexes}): void { - if (typeof modifiersIndexes.defend !== 'undefined') { - modifiers.defense?.fixed.remove(modifiersIndexes.defend); - modifiersIndexes.defend = undefined; + if (typeof modifiersIndexes.defense !== 'undefined') { + modifiers.defense?.fixed.remove(modifiersIndexes.defense); + modifiersIndexes.defense = undefined; } } }