Skip to content
Permalink
Browse files

Deck colour detection no longer takes into account hybrid mana. Fixes #…

  • Loading branch information...
AnnanFay committed Feb 25, 2019
1 parent c2a887b commit 2eecbd1c01a29b8b058c36c4afe9c6638a3b314e
Showing with 5 additions and 9 deletions.
  1. +5 −9 shared/util.js
@@ -740,19 +740,15 @@ function get_deck_colors(deck) {
}

cardData.cost.forEach(cost => {
if (cost.indexOf('w') !== -1) {
if (cost === 'w') {
colorIndices.push(WHITE);
}
if (cost.indexOf('u') !== -1) {
} else if (cost === 'u') {
colorIndices.push(BLUE);
}
if (cost.indexOf('b') !== -1) {
} else if (cost === 'b') {
colorIndices.push(BLACK);
}
if (cost.indexOf('r') !== -1) {
} else if (cost === 'r') {
colorIndices.push(RED);
}
if (cost.indexOf('g') !== -1) {
} else if (cost === 'g') {
colorIndices.push(GREEN);
}
});

0 comments on commit 2eecbd1

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