Skip to content

Commit

Permalink
fix: double-transformed card appearing wrong in the opposing hand
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Aug 12, 2024
1 parent bf96696 commit 8f8c330
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ts/protocol/HSReplayDecoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,10 @@ export default class HSReplayDecoder extends Stream.Transform
cardId = "BOT_434"; // Flobbidinous Floop
break;
default:
// prefer reporting unknown card as opposed to transformed
return;
// explicitly flag as unknown, so they won't be overridden
// again later (e.g. on ChangeEntity)
cardId = undefined;
break;
}
}
const newCardIds = this.cardIds.set(id, cardId);
Expand Down

0 comments on commit 8f8c330

Please sign in to comment.