mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
* GUI: fixed that abilities and triggers on the stack were not highlighted as valid target;
This commit is contained in:
parent
6f34d514f9
commit
b8b2dd2c9b
3 changed files with 12 additions and 0 deletions
|
|
@ -168,8 +168,13 @@
|
|||
}
|
||||
}
|
||||
if (card instanceof StackAbilityView) {
|
||||
// replace ability by original card
|
||||
CardView tmp = ((StackAbilityView) card).getSourceCard();
|
||||
tmp.overrideRules(card.getRules());
|
||||
tmp.setChoosable(card.isChoosable());
|
||||
tmp.setPlayable(card.isPlayable());
|
||||
tmp.setPlayableAmount(card.getPlayableAmount());
|
||||
tmp.setSelected(card.isSelected());
|
||||
tmp.setIsAbility(true);
|
||||
tmp.overrideTargets(card.getTargets());
|
||||
tmp.overrideId(card.getId());
|
||||
|
|
|
|||
|
|
@ -112,8 +112,13 @@ public class StackDialog extends IDialogPanel {
|
|||
for (CardView card : cards.values()) {
|
||||
|
||||
if (card instanceof StackAbilityView) {
|
||||
// replace ability by original card
|
||||
CardView tmp = ((StackAbilityView) card).getSourceCard();
|
||||
tmp.overrideRules(card.getRules());
|
||||
tmp.setChoosable(card.isChoosable());
|
||||
tmp.setPlayable(card.isPlayable());
|
||||
tmp.setPlayableAmount(card.getPlayableAmount());
|
||||
tmp.setSelected(card.isSelected());
|
||||
tmp.setIsAbility(true);
|
||||
tmp.overrideTargets(card.getTargets());
|
||||
tmp.overrideId(card.getId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue