* Performance: optimized cards database to increase tests and boosters generation;

This commit is contained in:
Oleg Agafonov 2021-08-12 23:59:08 +04:00
parent dc4bde0646
commit 49308bcd4f
3 changed files with 8 additions and 75 deletions

View file

@ -126,14 +126,14 @@ public class PermanentCard extends PermanentImpl {
}
this.subtype.copyFrom(card.getSubtype());
this.supertype.clear();
supertype.addAll(card.getSuperType());
this.supertype.addAll(card.getSuperType());
this.expansionSetCode = card.getExpansionSetCode();
this.rarity = card.getRarity();
this.cardNumber = card.getCardNumber();
this.usesVariousArt = card.getUsesVariousArt();
transformable = card.isTransformable();
if (transformable) {
this.transformable = card.isTransformable();
if (this.transformable) {
this.nightCard = card.isNightCard();
if (!this.nightCard) {
this.secondSideCard = card.getSecondCardFace();