mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
- Fixed issue #2075
This commit is contained in:
parent
1346949368
commit
9b5a02c09c
3 changed files with 45 additions and 37 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue