mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
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:
parent
881f162056
commit
b20b572f60
2 changed files with 2 additions and 1 deletions
|
|
@ -346,7 +346,7 @@ public class DeckGenerator {
|
|||
}
|
||||
}
|
||||
if (count == 0) {
|
||||
return 0;
|
||||
return -10;
|
||||
}
|
||||
Integer typeCount = singleCount.get(symbol);
|
||||
if (typeCount == null) {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue