From 99bfbf378ec527ff2c5866ce7ef1fa816f9999d2 Mon Sep 17 00:00:00 2001 From: WEBXOSS Date: Sun, 11 Dec 2016 13:31:24 +0800 Subject: [PATCH] Fix WX11-032 with WX14-017 --- Card.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Card.js b/Card.js index 7d04cb7..4d52991 100644 --- a/Card.js +++ b/Card.js @@ -538,10 +538,11 @@ Card.prototype.getColors = function (ignoreColorless) { if (!this._SnoropNaturalPlantPrincess) return colors; if (!inArr(this,this.player.signis)) return colors; this.player.enerZone.cards.forEach(function (card) { - var color = card.color; - if (color === 'colorless') return; - if (inArr(color,colors)) return; - colors.push(color); + card.otherColors.concat(card.color).forEach(function (color) { + if (color === 'colorless') return; + if (inArr(color,colors)) return; + colors.push(color); + },this); }); return colors; };