mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Merge branch 'master' into 'master'
Tweak Savior of Ollenbock AI logic. See merge request core-developers/forge!5697
This commit is contained in:
@@ -1304,10 +1304,11 @@ public class SpecialCardAi {
|
||||
// Savior of Ollenbock
|
||||
public static class SaviorOfOllenbock {
|
||||
public static boolean consider(final Player ai, final SpellAbility sa) {
|
||||
CardCollection threats = CardLists.filter(ai.getOpponents().getCreaturesInPlay(), new Predicate<Card>() {
|
||||
CardCollection oppTargetables = CardLists.getTargetableCards(ai.getOpponents().getCreaturesInPlay(), sa);
|
||||
CardCollection threats = CardLists.filter(oppTargetables, new Predicate<Card>() {
|
||||
@Override
|
||||
public boolean apply(Card card) {
|
||||
return !ComputerUtilCard.isUselessCreature(card.getController(), card) && sa.canTarget(card);
|
||||
return !ComputerUtilCard.isUselessCreature(card.getController(), card);
|
||||
}
|
||||
});
|
||||
CardCollection ownTgts = CardLists.filter(ai.getCardsIn(ZoneType.Graveyard), CardPredicates.Presets.CREATURES);
|
||||
|
||||
Reference in New Issue
Block a user