mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-01-19 03:56:06 +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
3
Card.js
3
Card.js
|
@ -538,10 +538,11 @@ Card.prototype.getColors = function (ignoreColorless) {
|
||||||
if (!this._SnoropNaturalPlantPrincess) return colors;
|
if (!this._SnoropNaturalPlantPrincess) return colors;
|
||||||
if (!inArr(this,this.player.signis)) return colors;
|
if (!inArr(this,this.player.signis)) return colors;
|
||||||
this.player.enerZone.cards.forEach(function (card) {
|
this.player.enerZone.cards.forEach(function (card) {
|
||||||
var color = card.color;
|
card.otherColors.concat(card.color).forEach(function (color) {
|
||||||
if (color === 'colorless') return;
|
if (color === 'colorless') return;
|
||||||
if (inArr(color,colors)) return;
|
if (inArr(color,colors)) return;
|
||||||
colors.push(color);
|
colors.push(color);
|
||||||
|
},this);
|
||||||
});
|
});
|
||||||
return colors;
|
return colors;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue