Remove debug lines I left in log ago

This commit is contained in:
Matt Crawford
2021-11-10 10:09:21 -08:00
parent 7320bc88d0
commit 7bb76cd52f
2 changed files with 1 additions and 9 deletions

View File

@@ -1211,7 +1211,6 @@ public class ChangeZoneAi extends SpellAbilityAi {
if (choice == null) { // Could not find a creature. if (choice == null) { // Could not find a creature.
if (ai.getLife() <= 5) { // Desperate? if (ai.getLife() <= 5) { // Desperate?
// Get something AI can cast soon. // Get something AI can cast soon.
System.out.println("5 Life or less, trying to find something castable.");
CardLists.sortByCmcDesc(nonLands); CardLists.sortByCmcDesc(nonLands);
for (Card potentialCard : nonLands) { for (Card potentialCard : nonLands) {
if (ComputerUtilMana.hasEnoughManaSourcesToCast(potentialCard.getFirstSpellAbility(), ai)) { if (ComputerUtilMana.hasEnoughManaSourcesToCast(potentialCard.getFirstSpellAbility(), ai)) {
@@ -1221,7 +1220,6 @@ public class ChangeZoneAi extends SpellAbilityAi {
} }
} else { } else {
// Get the best card in there. // Get the best card in there.
System.out.println("No creature and lots of life, finding something good.");
choice = ComputerUtilCard.getBestAI(nonLands); choice = ComputerUtilCard.getBestAI(nonLands);
} }
} }
@@ -1487,7 +1485,6 @@ public class ChangeZoneAi extends SpellAbilityAi {
if (choice == null) { // Could not find a creature. if (choice == null) { // Could not find a creature.
if (ai.getLife() <= 5) { // Desperate? if (ai.getLife() <= 5) { // Desperate?
// Get something AI can cast soon. // Get something AI can cast soon.
System.out.println("5 Life or less, trying to find something castable.");
CardLists.sortByCmcDesc(nonLands); CardLists.sortByCmcDesc(nonLands);
for (Card potentialCard : nonLands) { for (Card potentialCard : nonLands) {
if (ComputerUtilMana.hasEnoughManaSourcesToCast(potentialCard.getFirstSpellAbility(), ai)) { if (ComputerUtilMana.hasEnoughManaSourcesToCast(potentialCard.getFirstSpellAbility(), ai)) {
@@ -1497,7 +1494,6 @@ public class ChangeZoneAi extends SpellAbilityAi {
} }
} else { } else {
// Get the best card in there. // Get the best card in there.
System.out.println("No creature and lots of life, finding something good.");
choice = ComputerUtilCard.getBestAI(nonLands); choice = ComputerUtilCard.getBestAI(nonLands);
} }
} }
@@ -1680,12 +1676,10 @@ public class ChangeZoneAi extends SpellAbilityAi {
canCastSomething = canCastSomething || ComputerUtilMana.hasEnoughManaSourcesToCast(cardInHand.getFirstSpellAbility(), decider); canCastSomething = canCastSomething || ComputerUtilMana.hasEnoughManaSourcesToCast(cardInHand.getFirstSpellAbility(), decider);
} }
if (!canCastSomething) { if (!canCastSomething) {
System.out.println("Pulling a land as there are none in hand, less than 4 on the board, and nothing in hand is castable.");
c = basicManaFixing(decider, fetchList); c = basicManaFixing(decider, fetchList);
} }
} }
if (c == null) { if (c == null) {
System.out.println("Don't need a land or none available; trying for a creature.");
fetchList = CardLists.getNotType(fetchList, "Land"); fetchList = CardLists.getNotType(fetchList, "Land");
// Prefer to pull a creature, generally more useful for AI. // Prefer to pull a creature, generally more useful for AI.
c = chooseCreature(decider, CardLists.filter(fetchList, CardPredicates.Presets.CREATURES)); c = chooseCreature(decider, CardLists.filter(fetchList, CardPredicates.Presets.CREATURES));
@@ -1693,7 +1687,6 @@ public class ChangeZoneAi extends SpellAbilityAi {
if (c == null) { // Could not find a creature. if (c == null) { // Could not find a creature.
if (decider.getLife() <= 5) { // Desperate? if (decider.getLife() <= 5) { // Desperate?
// Get something AI can cast soon. // Get something AI can cast soon.
System.out.println("5 Life or less, trying to find something castable.");
CardLists.sortByCmcDesc(fetchList); CardLists.sortByCmcDesc(fetchList);
for (Card potentialCard : fetchList) { for (Card potentialCard : fetchList) {
if (ComputerUtilMana.hasEnoughManaSourcesToCast(potentialCard.getFirstSpellAbility(), decider)) { if (ComputerUtilMana.hasEnoughManaSourcesToCast(potentialCard.getFirstSpellAbility(), decider)) {
@@ -1703,7 +1696,6 @@ public class ChangeZoneAi extends SpellAbilityAi {
} }
} else { } else {
// Get the best card in there. // Get the best card in there.
System.out.println("No creature and lots of life, finding something good.");
c = ComputerUtilCard.getBestAI(fetchList); c = ComputerUtilCard.getBestAI(fetchList);
} }
} }

View File

@@ -22,7 +22,7 @@ leriomaggio
Luke Luke
Marek14 Marek14
Marvel Marvel
mcrawford620 mcrawford
medusa medusa
Meerkov Meerkov
Monkey Gland Sauce Monkey Gland Sauce