- Implemented AI for Crater's Claws

This commit is contained in:
excessum
2014-09-21 03:38:15 +00:00
parent 3db4d519b7
commit 46033d55a9
2 changed files with 29 additions and 2 deletions

View File

@@ -2348,6 +2348,25 @@ public class Player extends GameEntity implements Comparable<Player> {
return false;
}
/**
* <p>
* hasFerocious.
* </p>
*
* @return a boolean.
*/
public boolean hasFerocious() {
final List<Card> list = this.getCreaturesInPlay();
final List<Card> ferocious = CardLists.filter(list, new Predicate<Card>() {
@Override
public boolean apply(final Card c) {
return c.getNetAttack() > 3;
}
});
return !ferocious.isEmpty();
}
/**
* <p>
* getBloodthirstAmount.