Added support for Kin-Tree Invocation (KTK).

This commit is contained in:
Krazy
2014-09-17 23:11:15 +00:00
parent f9bbaef92b
commit bb1f61a2a9

View File

@@ -899,6 +899,20 @@ public class CardFactoryUtil {
return highest; return highest;
} }
if (l[0].startsWith("GreatestToughness_")) {
System.out.println("GREAT!");
final String restriction = l[0].substring(18);
final String[] rest = restriction.split(",");
List<Card> list = CardLists.getValidCards(cc.getGame().getCardsIn(ZoneType.Battlefield), rest, cc, c);
int highest = 0;
for (final Card crd : list) {
if (crd.getNetDefense() > highest) {
highest = crd.getNetDefense();
}
}
return highest;
}
if (l[0].startsWith("HighestCMC_")) { if (l[0].startsWith("HighestCMC_")) {
final String restriction = l[0].substring(11); final String restriction = l[0].substring(11);
final String[] rest = restriction.split(","); final String[] rest = restriction.split(",");