Prefer random token from set (#7961)

* Prefer random token from set

* Aoivd the array cost

* Forgot import

* ImageUtil

* Fix some tokens
This commit is contained in:
Eradev
2025-07-08 19:21:09 -04:00
committed by GitHub
parent cc4a43f0a2
commit 6526d736bf
4 changed files with 68 additions and 17 deletions

View File

@@ -224,7 +224,7 @@ public class ImageCache {
&& ipc != null && !ipc.getArtist().isEmpty();
String originalKey = imageKey;
if (useArtCrop) {
if (ipc != null && ipc.getRules().getSplitType() == CardSplitType.Flip) {
if (ipc.getRules().getSplitType() == CardSplitType.Flip) {
// Art crop will always use front face as image key for flip cards
imageKey = ipc.getCardImageKey();
}