mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +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;
|
package mage.view;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
import mage.MageObject;
|
import mage.MageObject;
|
||||||
import mage.ObjectColor;
|
import mage.ObjectColor;
|
||||||
import mage.abilities.Abilities;
|
import mage.abilities.Abilities;
|
||||||
|
@ -51,9 +53,6 @@ import mage.target.Target;
|
||||||
import mage.target.Targets;
|
import mage.target.Targets;
|
||||||
import mage.util.SubTypeList;
|
import mage.util.SubTypeList;
|
||||||
|
|
||||||
import java.util.*;
|
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author BetaSteward_at_googlemail.com
|
* @author BetaSteward_at_googlemail.com
|
||||||
*/
|
*/
|
||||||
|
@ -354,16 +353,16 @@ public class CardView extends SimpleCardView {
|
||||||
if (game != null) {
|
if (game != null) {
|
||||||
if (permanent.getCounters(game) != null && !permanent.getCounters(game).isEmpty()) {
|
if (permanent.getCounters(game) != null && !permanent.getCounters(game).isEmpty()) {
|
||||||
this.loyalty = Integer.toString(permanent.getCounters(game).getCount(CounterType.LOYALTY));
|
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<>();
|
counters = new ArrayList<>();
|
||||||
for (Counter counter : permanent.getCounters(game).values()) {
|
for (Counter counter : permanent.getCounters(game).values()) {
|
||||||
counters.add(new CounterView(counter));
|
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())) {
|
if (!permanent.getControllerId().equals(permanent.getOwnerId())) {
|
||||||
controlledByOwner = false;
|
controlledByOwner = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue