mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 23:12:10 -08:00
* Fixed handling of morphed cards in exile zone.
This commit is contained in:
parent
55e386a0e8
commit
8d6c25b3e8
4 changed files with 19 additions and 19 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue