Skip to content

Commit

Permalink
Fix issue where "Bounce Back" card was erroneously detected as a back…
Browse files Browse the repository at this point in the history
… card
  • Loading branch information
Andrew Brindamour committed Dec 28, 2020
1 parent 3bff083 commit 22270fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Logic/GloomhavenDataService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ export class GloomhavenDataService {

cardsForCharacter(character: Character) : CharacterAbilityCard[] {
return this._cardsForCharacter(character)
.filter((card: any) => !card.image.endsWith("-back.png"))
.filter((card) => card.id != character.abbrev.toLowerCase() + "-back")
}

backCardForCharacter(character: Character) : CharacterAbilityCard {

return this._cardsForCharacter(character)
.filter((card: any) => card.image.endsWith("-back.png"))
.filter((card) => card.id == character.abbrev.toLowerCase() + "-back")
[0]
}

Expand Down

0 comments on commit 22270fd

Please sign in to comment.