mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Fixed the cards exiled face down showing up as Morph in exile zone instead of as a hidden face down card (card back picture).
This commit is contained in:
@@ -801,6 +801,12 @@ public class CardView extends GameEntityView {
|
||||
}
|
||||
public String getImageKey(Iterable<PlayerView> viewers) {
|
||||
if (canBeShownToAny(viewers)) {
|
||||
// Morph cards can only be present on the battlefield and on stack, otherwise show a standard card back
|
||||
if (getZone() != ZoneType.Battlefield && getZone() != ZoneType.Stack) {
|
||||
if (isFaceDown() && get(TrackableProperty.ImageKey).equals(ImageKeys.getTokenKey(ImageKeys.MORPH_IMAGE))) {
|
||||
return ImageKeys.getTokenKey(ImageKeys.HIDDEN_CARD);
|
||||
}
|
||||
}
|
||||
return get(TrackableProperty.ImageKey);
|
||||
}
|
||||
return ImageKeys.getTokenKey(ImageKeys.HIDDEN_CARD);
|
||||
|
||||
Reference in New Issue
Block a user