mirror of
https://github.com/correl/mage.git
synced 2025-03-16 09:16:26 -09:00
- Fixed #8168
This commit is contained in:
parent
ea58f2d65f
commit
a0e046bf70
1 changed files with 23 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
package mage.cards.p;
|
package mage.cards.p;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -13,6 +12,10 @@ import mage.abilities.effects.common.ChooseColorEffect;
|
||||||
import mage.cards.Card;
|
import mage.cards.Card;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.cards.ModalDoubleFacesCard;
|
||||||
|
import mage.cards.ModalDoubleFacesCardHalf;
|
||||||
|
import mage.cards.SplitCard;
|
||||||
|
import mage.cards.SplitCardHalf;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Duration;
|
import mage.constants.Duration;
|
||||||
import mage.constants.Layer;
|
import mage.constants.Layer;
|
||||||
|
@ -82,7 +85,7 @@ class PaintersServantEffect extends ContinuousEffectImpl {
|
||||||
Card card = ((Spell) object).getCard();
|
Card card = ((Spell) object).getCard();
|
||||||
game.getState().getCreateMageObjectAttribute(card, game).getColor().addColor(color);
|
game.getState().getCreateMageObjectAttribute(card, game).getColor().addColor(color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Exile
|
// Exile
|
||||||
for (Card card : game.getExile().getAllCards(game)) {
|
for (Card card : game.getExile().getAllCards(game)) {
|
||||||
game.getState().getCreateMageObjectAttribute(card, game).getColor().addColor(color);
|
game.getState().getCreateMageObjectAttribute(card, game).getColor().addColor(color);
|
||||||
|
@ -102,7 +105,24 @@ class PaintersServantEffect extends ContinuousEffectImpl {
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
// Hand
|
// Hand
|
||||||
for (Card card : player.getHand().getCards(game)) {
|
for (Card card : player.getHand().getCards(game)) {
|
||||||
game.getState().getCreateMageObjectAttribute(card, game).getColor().addColor(color);
|
// handle MDFC
|
||||||
|
if (card instanceof ModalDoubleFacesCard) {
|
||||||
|
ModalDoubleFacesCardHalf leftHalfCard = ((ModalDoubleFacesCard) card).getLeftHalfCard();
|
||||||
|
ModalDoubleFacesCardHalf rightHalfCard = ((ModalDoubleFacesCard) card).getRightHalfCard();
|
||||||
|
game.getState().getCreateMageObjectAttribute(leftHalfCard, game).getColor().addColor(color);
|
||||||
|
game.getState().getCreateMageObjectAttribute(rightHalfCard, game).getColor().addColor(color);
|
||||||
|
}
|
||||||
|
// handle Split-Cards
|
||||||
|
if (card instanceof SplitCard) {
|
||||||
|
SplitCardHalf leftHalfCard = ((SplitCard) card).getLeftHalfCard();
|
||||||
|
SplitCardHalf rightHalfCard = ((SplitCard) card).getRightHalfCard();
|
||||||
|
game.getState().getCreateMageObjectAttribute(leftHalfCard, game).getColor().addColor(color);
|
||||||
|
game.getState().getCreateMageObjectAttribute(rightHalfCard, game).getColor().addColor(color);
|
||||||
|
}
|
||||||
|
game.getState().getCreateMageObjectAttribute(card.getMainCard(), game).getColor().addColor(color);
|
||||||
|
if (card.getSecondCardFace() != null) {
|
||||||
|
game.getState().getCreateMageObjectAttribute(card.getSecondCardFace(), game).getColor().addColor(color);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Library
|
// Library
|
||||||
for (Card card : player.getLibrary().getCards(game)) {
|
for (Card card : player.getLibrary().getCards(game)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue