mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Somewhat more detailed logic for allied sac on Vaevictis.
This commit is contained in:
@@ -491,7 +491,17 @@ public class PumpAi extends PumpAiBase {
|
|||||||
if (p.isOpponentOf(ai)) {
|
if (p.isOpponentOf(ai)) {
|
||||||
sa.getTargets().add(ComputerUtilCard.getBestAI(targetable));
|
sa.getTargets().add(ComputerUtilCard.getBestAI(targetable));
|
||||||
} else {
|
} else {
|
||||||
sa.getTargets().add(ComputerUtilCard.getWorstAI(targetable));
|
CardCollection priorityTgts = new CardCollection();
|
||||||
|
for (Card c : targetable) {
|
||||||
|
if (c.hasSVar("SacMe") || (c.isCreature() && ComputerUtilCard.evaluateCreature(c) <= 135)) {
|
||||||
|
priorityTgts.add(c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!priorityTgts.isEmpty()) {
|
||||||
|
sa.getTargets().add(priorityTgts.getFirst());
|
||||||
|
} else {
|
||||||
|
sa.getTargets().add(ComputerUtilCard.getWorstPermanentAI(targetable, true, true, true, false));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user