mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Banding arrow fix
This commit is contained in:
parent
cb63931d35
commit
f0ab1575f9
1 changed files with 7 additions and 8 deletions
|
@ -27,6 +27,8 @@
|
|||
*/
|
||||
package mage.view;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
import mage.MageObject;
|
||||
import mage.ObjectColor;
|
||||
import mage.abilities.Abilities;
|
||||
|
@ -51,9 +53,6 @@ import mage.target.Target;
|
|||
import mage.target.Targets;
|
||||
import mage.util.SubTypeList;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
|
@ -354,16 +353,16 @@ public class CardView extends SimpleCardView {
|
|||
if (game != null) {
|
||||
if (permanent.getCounters(game) != null && !permanent.getCounters(game).isEmpty()) {
|
||||
this.loyalty = Integer.toString(permanent.getCounters(game).getCount(CounterType.LOYALTY));
|
||||
this.pairedCard = permanent.getPairedCard() != null ? permanent.getPairedCard().getSourceId() : null;
|
||||
this.bandedCards = new ArrayList<>();
|
||||
for (UUID bandedCard : permanent.getBandedCards()) {
|
||||
bandedCards.add(bandedCard);
|
||||
}
|
||||
counters = new ArrayList<>();
|
||||
for (Counter counter : permanent.getCounters(game).values()) {
|
||||
counters.add(new CounterView(counter));
|
||||
}
|
||||
}
|
||||
this.pairedCard = permanent.getPairedCard() != null ? permanent.getPairedCard().getSourceId() : null;
|
||||
this.bandedCards = new ArrayList<>();
|
||||
for (UUID bandedCard : permanent.getBandedCards()) {
|
||||
bandedCards.add(bandedCard);
|
||||
}
|
||||
if (!permanent.getControllerId().equals(permanent.getOwnerId())) {
|
||||
controlledByOwner = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue