* Fixed handling of morphed cards in exile zone.

This commit is contained in:
LevelX2 2015-01-31 12:45:54 +01:00
parent 55e386a0e8
commit 8d6c25b3e8
4 changed files with 19 additions and 19 deletions

View file

@ -137,27 +137,25 @@ public class CardView extends SimpleCardView {
// TODO: Better handle this in Framework (but currently I'm not sure how to do it there) LevelX2
if (card.isFaceDown()) {
this.fillEmpty(card, controlled);
if (card.isMorphCard()) {
if (card.isMorphCard() && card instanceof Spell) {
// special handling for casting of Morph cards
if (card instanceof Spell /*|| card instanceof Card*/) {
if (controlled) {
this.name = card.getName();
this.displayName = card.getName();
this.alternateName = card.getName();
}
this.power = "2";
this.toughness = "2";
this.rules.add("You may cast this card as a 2/2 face-down creature, with no text," +
" no name, no subtypes, and no mana cost by paying {3} rather than paying its mana cost.");
return;
if (controlled) {
this.name = card.getName();
this.displayName = card.getName();
this.alternateName = card.getName();
}
this.power = "2";
this.toughness = "2";
this.rules.add("You may cast this card as a 2/2 face-down creature, with no text," +
" no name, no subtypes, and no mana cost by paying {3} rather than paying its mana cost.");
return;
} else {
if (card instanceof Permanent) {
this.power = Integer.toString(card.getPower().getValue());
this.toughness = Integer.toString(card.getToughness().getValue());
this.cardTypes = card.getCardType();
} else {
this.hideInfo = true;
// this.hideInfo = true;
return;
}
}