mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Added AI support for the Time Vault + Voltaic Key combo.
This commit is contained in:
@@ -159,11 +159,22 @@ public class UntapAi extends SpellAbilityAi {
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (CardLists.getNotType(untapList, "Creature").isEmpty()) {
|
||||
choice = ComputerUtilCard.getBestCreatureAI(untapList); // if only creatures take the best
|
||||
} else {
|
||||
choice = ComputerUtilCard.getMostExpensivePermanentAI(untapList, sa, false);
|
||||
}
|
||||
//Untap Time Vault? - Yes please!
|
||||
for (Card c : untapList) {
|
||||
if (c.getName().equals("Time Vault")) {
|
||||
choice = c;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (choice == null) {
|
||||
if (CardLists.getNotType(untapList, "Creature").isEmpty()) {
|
||||
choice = ComputerUtilCard.getBestCreatureAI(untapList); // if only creatures take the best
|
||||
} else {
|
||||
if (!sa.getPayCosts().hasManaCost() || sa.isTrigger()) {
|
||||
choice = ComputerUtilCard.getMostExpensivePermanentAI(untapList, sa, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (choice == null) { // can't find anything left
|
||||
|
||||
Reference in New Issue
Block a user