Skip to content

Commit 8f8c330

Browse files
committed
fix: double-transformed card appearing wrong in the opposing hand
1 parent bf96696 commit 8f8c330

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ts/protocol/HSReplayDecoder.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,10 @@ export default class HSReplayDecoder extends Stream.Transform
479479
cardId = "BOT_434"; // Flobbidinous Floop
480480
break;
481481
default:
482-
// prefer reporting unknown card as opposed to transformed
483-
return;
482+
// explicitly flag as unknown, so they won't be overridden
483+
// again later (e.g. on ChangeEntity)
484+
cardId = undefined;
485+
break;
484486
}
485487
}
486488
const newCardIds = this.cardIds.set(id, cardId);

0 commit comments

Comments
 (0)