* Fixed that a spell that becomes a permanent didn't had the colors of the spell (e.g. ERsatz Gnomes).

This commit is contained in:
LevelX2 2016-10-21 00:15:41 +02:00
parent 72b23acf23
commit ee96531de5
5 changed files with 135 additions and 56 deletions

View file

@ -277,6 +277,9 @@ public class Spell extends StackObjImpl implements Card {
}
} else {
updateOptionalCosts(0);
if (!getColor(game).equals(card.getColor(game))) { // if spell color was changed, the created permanent needs to be of that color
game.getState().getCreateCardAttribute(card).getColor().setColor(getColor(game));
}
return controller.moveCards(card, Zone.BATTLEFIELD, ability, game, false, faceDown, false, null);
}
}