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