mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-01-18 19:56:02 +01:00
Fix WX11-032 with WX14-017
This commit is contained in:
parent
efe4dd7cb3
commit
99bfbf378e
1 changed files with 5 additions and 4 deletions
9
Card.js
9
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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue