mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58: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")) {
|
||||
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);
|
||||
if (setCard != null && !setCard.getEdition().equals(setCode)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user