- CheckStyle.

This commit is contained in:
Chris
2012-11-15 13:46:49 +00:00
parent ce9207e536
commit 6000a384f5

View File

@@ -29,13 +29,13 @@ public class PermanentCreatureAi extends SpellAiLogic {
protected boolean canPlayAI(Player aiPlayer, SpellAbility sa) { protected boolean canPlayAI(Player aiPlayer, SpellAbility sa) {
String logic = sa.getParam("AILogic"); String logic = sa.getParam("AILogic");
GameState game = Singletons.getModel().getGame(); GameState game = Singletons.getModel().getGame();
if ("ZeroToughness".equals(logic)) { if ("ZeroToughness".equals(logic)) {
// If Creature has Zero Toughness, make sure some static ability is in play // If Creature has Zero Toughness, make sure some static ability is in play
// That will grant a toughness bonus // That will grant a toughness bonus
final List<Card> list = aiPlayer.getCardsIn(ZoneType.Battlefield); final List<Card> list = aiPlayer.getCardsIn(ZoneType.Battlefield);
if (!Iterables.any(list, Predicates.or(CardPredicates.nameEquals("Glorious Anthem"), if (!Iterables.any(list, Predicates.or(CardPredicates.nameEquals("Glorious Anthem"),
CardPredicates.nameEquals("Gaea's Anthem")))) { CardPredicates.nameEquals("Gaea's Anthem")))) {
return false; return false;
} }
@@ -43,7 +43,7 @@ public class PermanentCreatureAi extends SpellAiLogic {
// TODO See if card ETB will survive after Static Effects // TODO See if card ETB will survive after Static Effects
/* /*
List<Card> cards = game.getCardsIn(ZoneType.Battlefield); List<Card> cards = game.getCardsIn(ZoneType.Battlefield);
for(Card c : cards) { for(Card c : cards) {
ArrayList<StaticAbility> statics = c.getStaticAbilities(); ArrayList<StaticAbility> statics = c.getStaticAbilities();
for(StaticAbility s : statics) { for(StaticAbility s : statics) {
@@ -52,7 +52,7 @@ public class PermanentCreatureAi extends SpellAiLogic {
if (!stabMap.get("Mode").equals("Continuous")) { if (!stabMap.get("Mode").equals("Continuous")) {
continue; continue;
} }
final String affected = stabMap.get("Affected"); final String affected = stabMap.get("Affected");
if (affected == null) { if (affected == null) {
@@ -68,7 +68,7 @@ public class PermanentCreatureAi extends SpellAiLogic {
&& !ComputerUtil.castPermanentInMain1(aiPlayer, sa)) { && !ComputerUtil.castPermanentInMain1(aiPlayer, sa)) {
return false; return false;
} }
// AI shouldn't be retricted all that much for Creatures for now // AI shouldn't be retricted all that much for Creatures for now
return true; return true;
} }