Skip to content
Permalink
Browse files

Fix tracking of cards stolen by Thief of Sanity

  • Loading branch information...
dougmill committed Feb 2, 2019
1 parent 77a60fd commit 02c0caf575521671a5454a96024af7125272545c
Showing with 8 additions and 8 deletions.
  1. +8 −8 window_background/labels.js
@@ -14,14 +14,14 @@ function onLabelOutLogInfo(entry, json) {
game.shuffledOrder = [];
for (let i = 0; i < initialLibraryInstanceIds.length; i++) {
let instance = initialLibraryInstanceIds[i];
while (!instanceToCardIdMap[instance] && idChanges[instance]) {
instance = idChanges[instance];
}
let cardId = instanceToCardIdMap[instance];
if (cardId === undefined) {
break;
while ((!instanceToCardIdMap[instance] || !cardsDb.get(instanceToCardIdMap[instance])) && idChanges[instance]) {
instance = idChanges[instance];
}
let cardId = instanceToCardIdMap[instance];
if (cardsDb.get(cardId)) {
game.shuffledOrder.push(cardId);
} else {
game.shuffledOrder.push(cardId);
break;
}
}
game.handsDrawn = payload.mulliganedHands.map(hand => hand.map(card => card.grpId));
@@ -945,7 +945,7 @@ function onLabelMatchGameRoomStateChangedEvent(entry, json) {
ipc_send("overlay_close", 1);
}
matchCompletedOnGameNumber = json.finalMatchResult.resultList.length - 1;
saveMatch(json.finalMatchResult.matchId);
saveMatch(json.finalMatchResult.matchId);
}

if (json.players) {

0 comments on commit 02c0caf

Please sign in to comment.
You can’t perform that action at this time.