Fix for the deckbuilder

Adding sites will now cause the deckbuilder to check whether the deck is legal.
This commit is contained in:
PhallenCassidy
2018-12-23 07:58:31 -05:00
committed by GitHub
parent a532f2c59e
commit 375646140c

View File

@@ -573,6 +573,7 @@ var GempLotrDeckBuildingUI = Class.extend({
var cardDiv = createCardDiv(card.imageUrl, null, card.isFoil(), tokens, card.isPack(), card.hasErrata());
cardDiv.data("card", card);
container.append(cardDiv);
this.deckDirty = true;
return cardDiv;
},
@@ -587,7 +588,6 @@ var GempLotrDeckBuildingUI = Class.extend({
cardDiv.addClass("cardInDeck");
that.showNormalFilter();
that.layoutSpecialGroups();
that.deckDirty = true;
that.deckModified(true);
};
},