1
0
Fork 0
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:
magenoxx 2010-12-08 17:59:55 +00:00
parent 14b8069afc
commit e45a8ad1e0
2 changed files with 5 additions and 0 deletions
Mage.Client/src/main/java/mage/client/cards
Mage.Common/src/mage/view

View file

@ -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())) {

View file

@ -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;
}