- Fixed issue #2075

This commit is contained in:
fwannmacher 2016-08-04 09:51:30 -03:00 committed by fwann
parent 1346949368
commit 9b5a02c09c
3 changed files with 45 additions and 37 deletions

View file

@ -111,6 +111,8 @@ public class CardView extends SimpleCardView {
protected boolean controlledByOwner = true;
protected Zone zone;
protected boolean rotate;
protected boolean hideInfo; // controls if the tooltip window is shown (eg. controlled face down morph card)
@ -161,9 +163,10 @@ public class CardView extends SimpleCardView {
// TODO: Better handle this in Framework (but currently I'm not sure how to do it there) LevelX2
boolean showFaceUp = true;
if (game != null) {
zone = game.getState().getZone(card.getId());
if (card.isFaceDown(game)) {
showFaceUp = false;
if (!Zone.BATTLEFIELD.equals(game.getState().getZone(card.getId()))) {
if (!Zone.BATTLEFIELD.equals(zone)) {
if (showFaceDownCard) {
showFaceUp = true;
}
@ -708,6 +711,10 @@ public class CardView extends SimpleCardView {
return controlledByOwner;
}
public Zone getZone() {
return zone;
}
public boolean isFlipCard() {
return flipCard;
}