mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- 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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user