1
0
Fork 0

🐛 fix encoding black cost

This commit is contained in:
WEBXOSS 2017-08-26 13:22:27 +08:00
parent 53a2a057be
commit 6232881fa2

View file

@ -1547,7 +1547,7 @@ Player.prototype.encodeCost = function (cost, withoutFilter) {
}
}
if (cost.costWhite) requirements.push({ count: cost.costWhite, mask: 1 })
if (cost.costBlack) requirements.push({ count: cost.costBlack, mask: 3 })
if (cost.costBlack) requirements.push({ count: cost.costBlack, mask: 2 })
if (cost.costGreen) requirements.push({ count: cost.costGreen, mask: 4 })
if (cost.costBlue) requirements.push({ count: cost.costBlue, mask: 8 })
if (cost.costRed) requirements.push({ count: cost.costRed, mask: 16 })