- Somewhat better RememberedWithSharedCardTypes, hopefully would work more reliably in case of 3+ cards tested at the same time for shared card type [not currently seen on any card].

This commit is contained in:
Agetian
2017-08-29 15:57:30 +00:00
parent 3fe548d8b7
commit 85c18ce07b

View File

@@ -810,9 +810,10 @@ public class CardFactoryUtil {
}
if (l[0].startsWith("RememberedWithSharedCardType")) {
int num = 0;
int maxNum = 1;
for (final Object o : c.getRemembered()) {
if (o instanceof Card) {
int num = 1;
Card firstCard = (Card) o;
for (final Object p : c.getRemembered()) {
if (p instanceof Card) {
@@ -822,9 +823,12 @@ public class CardFactoryUtil {
}
}
}
if (num > maxNum) {
maxNum = num;
}
}
}
return doXMath(num, m, c);
return doXMath(maxNum, m, c);
}
// Count$CountersAddedToPermYouCtrl <CounterType>