mirror of
https://github.com/correl/mage.git
synced 2025-03-28 13:00:16 -09:00
Using ability UUID for stack view as a key for cards added on the panel.
This commit is contained in:
parent
14b8069afc
commit
e45a8ad1e0
2 changed files with 5 additions and 0 deletions
|
@ -96,6 +96,7 @@ public class Cards extends javax.swing.JPanel {
|
|||
tmp.overrideRules(card.getRules());
|
||||
tmp.setIsAbility(true);
|
||||
tmp.overrideTargets(card.getTargets());
|
||||
tmp.overrideId(card.getId());
|
||||
card = tmp;
|
||||
}
|
||||
if (!cards.containsKey(card.getId())) {
|
||||
|
|
|
@ -241,6 +241,10 @@ public class CardView implements Serializable {
|
|||
this.targets = newTargets;
|
||||
}
|
||||
|
||||
public void overrideId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public void setAbility(CardView ability) {
|
||||
this.ability = ability;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue