mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Merge branch 'keys' into 'master'
Fix ImageKeys again See merge request core-developers/forge!5266
This commit is contained in:
@@ -236,6 +236,9 @@ public class ComputerUtilCost {
|
|||||||
if (cost == null) {
|
if (cost == null) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (!ai.isAI()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
for (final CostPart part : cost.getCostParts()) {
|
for (final CostPart part : cost.getCostParts()) {
|
||||||
if (part instanceof CostSacrifice) {
|
if (part instanceof CostSacrifice) {
|
||||||
CardCollection list = new CardCollection();
|
CardCollection list = new CardCollection();
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ public final class ImageKeys {
|
|||||||
cachedContent.put(setFolder, setFolderContent);
|
cachedContent.put(setFolder, setFolderContent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String[] keyParts = StringUtils.split(pc.getImageKeyFromSet(), "//");
|
String[] keyParts = StringUtils.split(pc.getCardImageKey(), "//");
|
||||||
if (keyParts.length != 2)
|
if (keyParts.length != 2)
|
||||||
return false;
|
return false;
|
||||||
HashSet<String> content = cachedContent.getOrDefault(keyParts[0], null);
|
HashSet<String> content = cachedContent.getOrDefault(keyParts[0], null);
|
||||||
|
|||||||
Reference in New Issue
Block a user