- Addendum to r30413 for cases where other effects are on the stack

This commit is contained in:
excessum
2015-11-29 03:12:32 +00:00
parent ee6386adb0
commit c7a75432ce

View File

@@ -49,6 +49,7 @@ public class PumpAi extends PumpAiBase {
final List<String> keywords = sa.hasParam("KW") ? Arrays.asList(sa.getParam("KW").split(" & ")) : new ArrayList<String>(); final List<String> keywords = sa.hasParam("KW") ? Arrays.asList(sa.getParam("KW").split(" & ")) : new ArrayList<String>();
final String numDefense = sa.hasParam("NumDef") ? sa.getParam("NumDef") : ""; final String numDefense = sa.hasParam("NumDef") ? sa.getParam("NumDef") : "";
final String numAttack = sa.hasParam("NumAtt") ? sa.getParam("NumAtt") : ""; final String numAttack = sa.hasParam("NumAtt") ? sa.getParam("NumAtt") : "";
final boolean isFight = sa.getParam("AILogic").equals("Fight") || sa.getParam("AILogic").equals("PowerDmg");
if (!ComputerUtilCost.checkLifeCost(ai, cost, sa.getHostCard(), 4, null)) { if (!ComputerUtilCost.checkLifeCost(ai, cost, sa.getHostCard(), 4, null)) {
return false; return false;
@@ -114,7 +115,7 @@ public class PumpAi extends PumpAiBase {
if (!sa.isCurse() && !SpellAbilityAi.isSorcerySpeed(sa)) { if (!sa.isCurse() && !SpellAbilityAi.isSorcerySpeed(sa)) {
return false; return false;
} }
} else if (!game.getStack().isEmpty() && !sa.isCurse()) { } else if (!game.getStack().isEmpty() && !sa.isCurse() && !isFight) {
return ComputerUtilCard.canPumpAgainstRemoval(ai, sa); return ComputerUtilCard.canPumpAgainstRemoval(ai, sa);
} }