Merge pull request #2553 from Agetian/master

Improve PumpAi for cards like Pearlspear Courier
This commit is contained in:
Anthony Calosa
2023-02-25 06:10:45 +08:00
committed by GitHub

View File

@@ -438,6 +438,10 @@ public class PumpAi extends PumpAiBase {
list = CardLists.getTargetableCards(list, sa); list = CardLists.getTargetableCards(list, sa);
CardLists.sortByPowerDesc(list); CardLists.sortByPowerDesc(list);
if (list.contains(source) && source.hasKeyword("You may choose not to untap CARDNAME during your untap step.") && sa.getPayCosts().hasTapCost()) {
list.remove(source); // don't tap a card that will be tapped as a part of the cost and won't untap normally.
}
// Try not to kill own creatures with this pump // Try not to kill own creatures with this pump
CardCollection canDieToPump = new CardCollection(); CardCollection canDieToPump = new CardCollection();
for (Card c : list) { for (Card c : list) {