- Cleanup in ComputerUtil_Attack2.

This commit is contained in:
jendave
2011-08-06 19:51:21 +00:00
parent 2938f8e4b4
commit 6a07ace760

View File

@@ -194,9 +194,8 @@ public class ComputerUtil_Attack2 {
CardList attackersLeft = new CardList(attackers.toArray()); CardList attackersLeft = new CardList(attackers.toArray());
//Atackers that don't really have a choice //Atackers that don't really have a choice
for (int i=0; i < attackersLeft.size(); i++) for (Card attacker : attackers)
{ {
Card attacker = attackersLeft.get(i);
if ( (attacker.getKeyword().contains("CARDNAME attacks each turn if able.") if ( (attacker.getKeyword().contains("CARDNAME attacks each turn if able.")
|| attacker.getKeyword().contains("At the beginning of the end step, destroy CARDNAME.") || attacker.getKeyword().contains("At the beginning of the end step, destroy CARDNAME.")
|| attacker.getKeyword().contains("At the beginning of the end step, exile CARDNAME.") || attacker.getKeyword().contains("At the beginning of the end step, exile CARDNAME.")
@@ -209,12 +208,10 @@ public class ComputerUtil_Attack2 {
} }
} }
attackersLeft = attackersLeft.filter(new CardListFilter() attackersLeft = attackersLeft.filter(new CardListFilter() {
{ public boolean addCard(Card c) {
public boolean addCard(Card c) return (0 < AllZone.HumanPlayer.predictDamage(c.getNetCombatDamage(),c,true) || c.getName().equals("Guiltfeeder"));
{ }
return (0 < AllZone.HumanPlayer.predictDamage(c.getNetCombatDamage(),c,true) || c.getName().equals("Guiltfeeder"));
}
}); });
// ******************* // *******************
@@ -552,22 +549,3 @@ public class ComputerUtil_Attack2 {
} }
} }