diff --git a/src/app/components/card/card.component.spec.ts b/src/app/components/card/card.component.spec.ts index bd1c0107..6e00c42b 100644 --- a/src/app/components/card/card.component.spec.ts +++ b/src/app/components/card/card.component.spec.ts @@ -202,6 +202,10 @@ describe('CardComponent', () => { typeIds: [CardTypeId.Action, CardTypeId.Duration, CardTypeId.Reaction], expected: calculateColor(CardTypeId.Duration, CardTypeId.Reaction), }, + { + typeIds: [CardTypeId.Treasure, CardTypeId.Duration], + expected: calculateColor(CardTypeId.Treasure, CardTypeId.Duration), + }, { typeIds: [CardTypeId.Action, CardTypeId.Reserve, CardTypeId.Victory], expected: calculateColor(CardTypeId.Reserve, CardTypeId.Victory), diff --git a/src/app/components/card/card.component.ts b/src/app/components/card/card.component.ts index 3aba9036..a26cfd4c 100644 --- a/src/app/components/card/card.component.ts +++ b/src/app/components/card/card.component.ts @@ -42,8 +42,8 @@ export class CardComponent { get color(): string { const orderedPrimaryCardTypes = [ - CardTypeId.Duration, CardTypeId.Treasure, + CardTypeId.Duration, CardTypeId.Reserve, CardTypeId.Victory, CardTypeId.Reaction,