mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 04:22:01 -08:00
* GUI: added card icon for announced X value (activate ability);
This commit is contained in:
parent
76082e1d7a
commit
7ccb390e4d
3 changed files with 84 additions and 2 deletions
|
|
@ -183,6 +183,7 @@
|
|||
if (card instanceof StackAbilityView) {
|
||||
// replace ability by original card
|
||||
CardView tmp = ((StackAbilityView) card).getSourceCard();
|
||||
// sync settings
|
||||
tmp.overrideRules(card.getRules());
|
||||
tmp.setChoosable(card.isChoosable());
|
||||
tmp.setPlayableStats(card.getPlayableStats().copy());
|
||||
|
|
@ -191,6 +192,9 @@
|
|||
tmp.overrideTargets(card.getTargets());
|
||||
tmp.overrideId(card.getId());
|
||||
tmp.setAbilityType(card.getAbilityType());
|
||||
// sync card icons
|
||||
tmp.getCardIcons().clear();
|
||||
tmp.getCardIcons().addAll(card.getCardIcons());
|
||||
card = tmp;
|
||||
} else {
|
||||
card.setAbilityType(null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue