- Pump AILogic ContinuousBonus: don't target opponent's creatures.

This commit is contained in:
Agetian
2017-10-25 04:28:37 +00:00
parent 0bac699cbf
commit 164e6656e8

View File

@@ -469,6 +469,13 @@ public class PumpAi extends PumpAiBase {
} }
list.removeAll(canDieToPump); list.removeAll(canDieToPump);
// Generally, don't pump anything that your opponents control
if ("ContinuousBonus".equals(sa.getParam("AILogic"))) {
// TODO: make it possible for the AI to use this logic to kill opposing creatures
// when a toughness debuff is applied
list = CardLists.filter(list, CardPredicates.isController(ai));
}
if (!list.isEmpty()) { if (!list.isEmpty()) {
sa.getTargets().add(list.get(0)); sa.getTargets().add(list.get(0));
return true; return true;