* Glittering Wish - Fixed that splitt spells mit monocolored halves of different colors are considered multicolored for non stack zones.

This commit is contained in:
LevelX2 2016-01-21 16:37:58 +01:00
parent 90fb740945
commit f820e5f5c2
2 changed files with 30 additions and 35 deletions

View file

@ -28,6 +28,8 @@
package mage.filter.predicate.mageobject;
import mage.MageObject;
import mage.cards.SplitCardHalf;
import mage.constants.Zone;
import mage.filter.predicate.Predicate;
import mage.game.Game;
@ -39,7 +41,14 @@ public class MulticoloredPredicate implements Predicate<MageObject> {
@Override
public boolean apply(MageObject input, Game game) {
return 1 < input.getColor(game).getColorCount();
// 708.3. Each split card that consists of two halves with different colored mana symbols in their mana costs
// is a multicolored card while its not a spell on the stack. While its a spell on the stack, its only the
// color or colors of the half or halves being cast. #
if (input instanceof SplitCardHalf && !game.getState().getZone(input.getId()).equals(Zone.STACK)) {
return 1 < ((SplitCardHalf) input).getMainCard().getColor(game).getColorCount();
} else {
return 1 < input.getColor(game).getColorCount();
}
}
@Override