- Filter out ETB Tapped Lands in one drop logic for playing lands (Improve not playing Karoo lands without a land in play)

This commit is contained in:
Sol
2014-03-18 00:57:52 +00:00
parent e03d626ef9
commit 682a0cff62

View File

@@ -515,6 +515,12 @@ public class AiController {
byte color = MagicColor.WUBRG[i]; byte color = MagicColor.WUBRG[i];
if (!CardLists.filter(oneDrops, CardPredicates.isColor(color)).isEmpty()) { if (!CardLists.filter(oneDrops, CardPredicates.isColor(color)).isEmpty()) {
for (Card land : landList) { for (Card land : landList) {
// Don't play ETB Tapped land if you have a 1 drop can be played
// Is this the best way to check if a land ETB Tapped?
if (land.hasSVar("ETBTappedSVar")) {
continue;
}
if (land.isType(MagicColor.Constant.BASIC_LANDS.get(i))) if (land.isType(MagicColor.Constant.BASIC_LANDS.get(i)))
return land; return land;