mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +00:00
- Pump AILogic ContinuousBonus: don't target opponent's creatures.
This commit is contained in:
@@ -469,6 +469,13 @@ public class PumpAi extends PumpAiBase {
|
||||
}
|
||||
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()) {
|
||||
sa.getTargets().add(list.get(0));
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user