forked from External/mage
changed cardtype from list to enumset
This commit is contained in:
parent
c0ffc47bf7
commit
372584f7ad
22 changed files with 116 additions and 55 deletions
|
|
@ -205,7 +205,7 @@ public class CardInfoWindowDialog extends MageDialog {
|
|||
private int qtyCardTypes(mage.view.CardsView cardsView){
|
||||
Set<String> cardTypesPresent = new LinkedHashSet<String>() {};
|
||||
for (CardView card : cardsView.values()){
|
||||
List<CardType> cardTypes = card.getCardTypes();
|
||||
Set<CardType> cardTypes = card.getCardTypes();
|
||||
for (CardType cardType : cardTypes){
|
||||
cardTypesPresent.add(cardType.toString());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -869,7 +869,7 @@ public class PlayerPanelExt extends javax.swing.JPanel {
|
|||
Set<String> cardTypesPresent = new LinkedHashSet<String>() {
|
||||
};
|
||||
for (CardView card : cardsView.values()) {
|
||||
List<CardType> cardTypes = card.getCardTypes();
|
||||
Set<CardType> cardTypes = card.getCardTypes();
|
||||
for (CardType cardType : cardTypes) {
|
||||
cardTypesPresent.add(cardType.toString());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue