Skip to content
Permalink
Browse files

draw commander in deck

  • Loading branch information...
Manuel-777 committed Sep 10, 2019
1 parent af8d879 commit 169c39cfd55e56c667aaccbf1afad70583260ec0
Showing with 17 additions and 0 deletions.
  1. +17 −0 window_main/renderer-util.js
@@ -195,6 +195,23 @@ function drawDeck(div, deck, showWildcards = false) {
div.innerHTML = "";
const unique = makeId(4);

if (deck.commandZoneGRPId) {
let commander = deck.commandZoneGRPId;
let separator = deckDrawer.cardSeparator(`Commander`);
div.appendChild(separator);

const tile = deckDrawer.cardTile(
pd.settings.card_tile_style,
commander,
unique + "a",
1,
showWildcards,
deck,
false
);
div.appendChild(tile);
}

// draw maindeck grouped by cardType
const cardsByGroup = _(deck.mainDeck)
.map(card => ({ data: db.card(card.id), ...card }))

0 comments on commit 169c39c

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