mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Fix crash with City in a Bottle & Facedown
This commit is contained in:
@@ -1708,6 +1708,9 @@ public class CardProperty {
|
|||||||
}
|
}
|
||||||
} else if (property.startsWith("set")) {
|
} else if (property.startsWith("set")) {
|
||||||
final String setCode = property.substring(3, 6);
|
final String setCode = property.substring(3, 6);
|
||||||
|
if (card.getName().isEmpty()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
final PaperCard setCard = StaticData.instance().getCommonCards().getCardFromEdition(card.getName(), CardDb.SetPreference.Earliest);
|
final PaperCard setCard = StaticData.instance().getCommonCards().getCardFromEdition(card.getName(), CardDb.SetPreference.Earliest);
|
||||||
if (setCard != null && !setCard.getEdition().equals(setCode)) {
|
if (setCard != null && !setCard.getEdition().equals(setCode)) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user