mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
* Glittering Wish - Fixed that splitt spells mit monocolored halves of different colors are considered multicolored for non stack zones.
This commit is contained in:
parent
90fb740945
commit
f820e5f5c2
2 changed files with 30 additions and 35 deletions
|
|
@ -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 it’s not a spell on the stack. While it’s a spell on the stack, it’s 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue