mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- The AI will no longer pump combatants to kill creatures like Rukh Egg.
This commit is contained in:
@@ -1085,7 +1085,8 @@ public class ComputerUtilCard {
|
|||||||
}
|
}
|
||||||
if (survivor) {
|
if (survivor) {
|
||||||
for (Card o : opposing) {
|
for (Card o : opposing) {
|
||||||
if (!ComputerUtilCombat.combatantWouldBeDestroyed(opp, o, combat)) {
|
if (!ComputerUtilCombat.combatantWouldBeDestroyed(opp, o, combat)
|
||||||
|
&& !(o.hasSVar("SacMe") && Integer.parseInt(o.getSVar("SacMe")) > 2)) {
|
||||||
if (isAttacking) {
|
if (isAttacking) {
|
||||||
if (ComputerUtilCombat.blockerWouldBeDestroyed(opp, o, pumpedCombat)) {
|
if (ComputerUtilCombat.blockerWouldBeDestroyed(opp, o, pumpedCombat)) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -153,15 +153,13 @@ public class PumpAi extends PumpAiBase {
|
|||||||
attack = AbilityUtils.calculateAmount(sa.getHostCard(), numAttack, sa);
|
attack = AbilityUtils.calculateAmount(sa.getHostCard(), numAttack, sa);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((numDefense.contains("X") && defense == 0)
|
if ((numDefense.contains("X") && defense == 0) || (numAttack.contains("X") && attack == 0)) {
|
||||||
|| (numAttack.contains("X") && attack == 0)) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Untargeted
|
//Untargeted
|
||||||
if ((sa.getTargetRestrictions() == null) || !sa.getTargetRestrictions().doesTarget()) {
|
if ((sa.getTargetRestrictions() == null) || !sa.getTargetRestrictions().doesTarget()) {
|
||||||
final List<Card> cards = AbilityUtils.getDefinedCards(sa.getHostCard(),
|
final List<Card> cards = AbilityUtils.getDefinedCards(sa.getHostCard(), sa.getParam("Defined"), sa);
|
||||||
sa.getParam("Defined"), sa);
|
|
||||||
|
|
||||||
if (cards.isEmpty()) {
|
if (cards.isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user