Fix Meld cards in FIN (#7973)

This commit is contained in:
Eradev
2025-07-09 01:39:48 -04:00
committed by GitHub
parent 127d0fced6
commit fd5af3c93e
24 changed files with 204 additions and 198 deletions

View File

@@ -236,9 +236,15 @@ public class ImageUtil {
} else if (cp.getRules().getSplitType() == CardSplitType.Meld
&& !cardCollectorNumber.endsWith("a")
&& !cardCollectorNumber.endsWith("b")) {
// Only the bottom half of a meld card shares a collector number.
// Hanweir Garrison EMN already has a appended.
cardCollectorNumber += face.equals("back") ? "b" : "a";
// Only the bottom half of a meld card shares a collector number.
// Hanweir Garrison EMN already has a appended.
// Exception: The front facing card doesn't use a in FIN
if (face.equals("back")) {
cardCollectorNumber += "b";
} else if (!editionCode.equals("fin")) {
cardCollectorNumber += "a";
}
}
String cardCollectorNumberEncoded;