mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- CheckStyle.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user