Fixed Deck generator that put very high rated cards even if they didn't fit the selected colors. Fixed bug in grouping attachments.

This commit is contained in:
magenoxx 2010-12-05 14:08:55 +00:00
parent 881f162056
commit b20b572f60
2 changed files with 2 additions and 1 deletions

View file

@ -346,7 +346,7 @@ public class DeckGenerator {
}
}
if (count == 0) {
return 0;
return -10;
}
Integer typeCount = singleCount.get(symbol);
if (typeCount == null) {

View file

@ -146,6 +146,7 @@ public class BattlefieldPanel extends javax.swing.JLayeredPane implements Compon
private void groupAttachments(PermanentView permanent) {
MagePermanent perm = permanents.get(permanent.getId());
if (perm == null) return;
int position = getPosition(perm);
perm.getLinks().clear();
Rectangle r = perm.getBounds();