mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
*Tweaked Valid handling in handlePaid. Fixes Elder Cathar.
This commit is contained in:
@@ -2115,9 +2115,11 @@ public class CardFactoryUtil {
|
|||||||
|
|
||||||
}
|
}
|
||||||
if (string.startsWith("Valid")) {
|
if (string.startsWith("Valid")) {
|
||||||
String valid = string.substring(6);
|
|
||||||
|
final String[] splitString = string.split("/", 2);
|
||||||
|
String valid = splitString[0].substring(6);
|
||||||
final List<Card> list = CardLists.getValidCards(paidList, valid, source.getController(), source);
|
final List<Card> list = CardLists.getValidCards(paidList, valid, source.getController(), source);
|
||||||
return CardFactoryUtil.doXMath(list.size(), CardFactoryUtil.extractOperators(valid), source);
|
return CardFactoryUtil.doXMath(list.size(), splitString[1], source);
|
||||||
}
|
}
|
||||||
|
|
||||||
int tot = 0;
|
int tot = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user