mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Addendum to r30413 for cases where other effects are on the stack
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user