mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
fix facedown card art for flip types
This commit is contained in:
committed by
leriomaggio
parent
3251f5149b
commit
de79b33cc9
@@ -822,7 +822,7 @@ public class CardView extends GameEntityView {
|
||||
updateZoneText(c);
|
||||
updateDamage(c);
|
||||
|
||||
if (getBackup() == null && !c.isFaceDown() && c.hasBackSide()) {
|
||||
if (getBackup() == null && !c.isFaceDown() && (c.hasBackSide()||c.isFlipCard())) {
|
||||
set(TrackableProperty.PaperCardBackup, c.getPaperCard());
|
||||
}
|
||||
|
||||
|
||||
@@ -310,7 +310,7 @@ public class CardImageRenderer {
|
||||
if (cv.isSplitCard()) {
|
||||
drawSplitCard(cv, altArt, g, x, y, w, h, altState, isFaceDown);
|
||||
} else if (cv.isFlipCard()) {
|
||||
drawFlipCard(altArt, g, x, y, w, h, altState);
|
||||
drawFlipCard(isFaceDown ? altArt : cardArt, g, x, y, w, h, altState);
|
||||
} else {
|
||||
g.drawImage(altArt, x, y, w, h);
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ public class CardZoom extends FOverlay {
|
||||
}
|
||||
if (flipIconBounds != null && flipIconBounds.contains(x, y)) {
|
||||
if (currentCard.isFaceDown() && currentCard.getBackup() != null) {
|
||||
if (currentCard.getBackup().hasBackSide()) {
|
||||
if (currentCard.getBackup().hasBackSide() || currentCard.getBackup().isFlipCard()) {
|
||||
show(currentCard.getBackup());
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user