mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Improved Birthing Pod AI.
This commit is contained in:
@@ -71,8 +71,14 @@ public class SpecialCardAi {
|
||||
public static class BirthingPod {
|
||||
public static boolean consider(final Player ai, SpellAbility sa) {
|
||||
Card source = sa.getHostCard();
|
||||
CardCollection listToSac = CardLists.filter(ai.getCardsIn(ZoneType.Battlefield), CardPredicates.Presets.CREATURES);
|
||||
PhaseHandler ph = ai.getGame().getPhaseHandler();
|
||||
|
||||
if (!ph.is(PhaseType.MAIN2)) {
|
||||
// Should be given a chance to cast other spells as well as to use a previously upgraded creature
|
||||
return false;
|
||||
}
|
||||
|
||||
CardCollection listToSac = CardLists.filter(ai.getCardsIn(ZoneType.Battlefield), CardPredicates.Presets.CREATURES);
|
||||
listToSac.sort(CardLists.CmcComparatorInv); // try to upgrade best creatures first
|
||||
|
||||
for (Card sacCandidate : listToSac) {
|
||||
|
||||
Reference in New Issue
Block a user