mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Cleanup in ComputerUtil_Attack2.
This commit is contained in:
@@ -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 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user