- Code formatting and import fixes.

This commit is contained in:
Agetian
2017-06-24 13:09:14 +00:00
parent 378d2fbbc6
commit 96b338ddd0

View File

@@ -1,7 +1,6 @@
package forge.ai.ability;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import forge.ai.AiController;
import forge.ai.AiProps;
@@ -228,15 +227,15 @@ public class DestroyAi extends SpellAbilityAi {
return true; // becomes Terminate
} else {
if (source.getGame().getPhaseHandler().getPhase()
.isBefore(PhaseType.COMBAT_DECLARE_BLOCKERS) || // prevent surprise combatant
.isBefore(PhaseType.COMBAT_DECLARE_BLOCKERS)
|| // prevent surprise combatant
ComputerUtilCard.evaluateCreature(choice) < 1.5
* ComputerUtilCard.evaluateCreature(token)) {
return false;
}
}
}
}
else if (CardLists.getNotType(list, "Land").isEmpty()) {
} else if (CardLists.getNotType(list, "Land").isEmpty()) {
choice = ComputerUtilCard.getBestLandAI(list);
if ("LandForLand".equals(logic) || "GhostQuarter".equals(logic)) {
@@ -245,8 +244,7 @@ public class DestroyAi extends SpellAbilityAi {
return false;
}
}
}
else {
} else {
choice = ComputerUtilCard.getMostExpensivePermanentAI(list, sa, true);
}
//option to hold removal instead only applies for single targeted removal
@@ -280,8 +278,7 @@ public class DestroyAi extends SpellAbilityAi {
list.remove(choice);
sa.getTargets().add(choice);
}
}
else if (sa.hasParam("Defined")) {
} else if (sa.hasParam("Defined")) {
list = AbilityUtils.getDefinedCards(source, sa.getParam("Defined"), sa);
if ("WillSkipTurn".equals(logic) && (sa.getHostCard().getController().equals(ai)
|| ai.getCreaturesInPlay().size() < ai.getOpponent().getCreaturesInPlay().size()