mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
* Chnaged some handling of transformable cards.
This commit is contained in:
parent
b7c0c1e8b4
commit
c6c88ee197
1 changed files with 5 additions and 4 deletions
|
@ -244,7 +244,7 @@ public class CardView extends SimpleCardView {
|
|||
Zone cardZone = game.getState().getZone(card.getId());
|
||||
if (card.isFaceDown(game)) {
|
||||
showFaceUp = false;
|
||||
if (Zone.BATTLEFIELD!=cardZone) {
|
||||
if (Zone.BATTLEFIELD != cardZone) {
|
||||
if (showFaceDownCard) {
|
||||
showFaceUp = true;
|
||||
}
|
||||
|
@ -379,8 +379,9 @@ public class CardView extends SimpleCardView {
|
|||
this.isToken = false;
|
||||
}
|
||||
|
||||
if (card.getSecondCardFace() != null) {
|
||||
this.secondCardFace = new CardView(card.getSecondCardFace());
|
||||
Card secondSideCard = card.getSecondCardFace();
|
||||
if (secondSideCard != null) {
|
||||
this.secondCardFace = new CardView(secondSideCard);
|
||||
this.alternateName = secondCardFace.getName();
|
||||
this.originalName = card.getName();
|
||||
}
|
||||
|
@ -458,7 +459,7 @@ public class CardView extends SimpleCardView {
|
|||
this.rarity = Rarity.NA;
|
||||
this.rules = new ArrayList<>();
|
||||
this.rules.add(stackAbility.getRule());
|
||||
if (stackAbility.getZone()==Zone.COMMAND) {
|
||||
if (stackAbility.getZone() == Zone.COMMAND) {
|
||||
this.expansionSetCode = stackAbility.getExpansionSetCode();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue