mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Improved verification on CardEdition not null for a card (also on date)
When this happens, no card update will be issued!
This commit is contained in:
@@ -331,7 +331,9 @@ public class Deck extends DeckBase implements Iterable<Entry<DeckSection, CardPo
|
||||
*/
|
||||
boolean isLatestCardArtPreference = StaticData.instance().cardArtPreferenceIsLatest();
|
||||
CardEdition cardEdition = StaticData.instance().getCardEdition(card.getEdition());
|
||||
if (cardEdition == null) return false;
|
||||
Date releaseDate = cardEdition.getDate();
|
||||
if (releaseDate == null) return false;
|
||||
if (isLatestCardArtPreference) // Latest Art
|
||||
return releaseDate.compareTo(referenceReleaseDate) > 0;
|
||||
// Original Art
|
||||
|
||||
Reference in New Issue
Block a user