- Added Natural Balance

This commit is contained in:
Sol
2013-03-09 03:41:30 +00:00
parent 8d8d30e066
commit ede42d710a
3 changed files with 24 additions and 0 deletions

View File

@@ -86,6 +86,17 @@ public class RepeatEachAi extends SpellAbilityAi {
}
tgt.addTarget(list.get(0));
} else if ("BalanceLands".equals(logic)) {
if (CardLists.filter(aiPlayer.getCardsIn(ZoneType.Battlefield), Presets.LANDS).size() >= 5) {
return false;
}
List<Player> opponents = aiPlayer.getOpponents();
for(Player opp : opponents) {
if (CardLists.filter(opp.getCardsIn(ZoneType.Battlefield), Presets.LANDS).size() < 4) {
return false;
}
}
}
// TODO Add some normal AI variability here