Skip to content
This repository was archived by the owner on Oct 24, 2021. It is now read-only.

Commit

Permalink
fix(quests): fix quests not deleted when completed (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoishin authored Dec 14, 2019
1 parent 2ce0954 commit 2b6ae23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/line-parsers/zone-change.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class ZoneChangeLineParser extends AbstractLineParser {
if (data.fromZone === 'SECRET') {
if (questMap.has(data.cardId)) {
// It's a quest or sidequest
player.quests = player.quests.filter(q => q.cardName !== data.cardId);
player.quests = player.quests.filter(q => q.cardName !== data.cardName);
} else {
// It's a secret
player.secrets = player.secrets.filter(secret => secret.cardId !== data.cardId);
Expand Down

0 comments on commit 2b6ae23

Please sign in to comment.