mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28: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) {
|
||||
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 (ComputerUtilCombat.blockerWouldBeDestroyed(opp, o, pumpedCombat)) {
|
||||
return true;
|
||||
|
||||
@@ -153,15 +153,13 @@ public class PumpAi extends PumpAiBase {
|
||||
attack = AbilityUtils.calculateAmount(sa.getHostCard(), numAttack, sa);
|
||||
}
|
||||
|
||||
if ((numDefense.contains("X") && defense == 0)
|
||||
|| (numAttack.contains("X") && attack == 0)) {
|
||||
if ((numDefense.contains("X") && defense == 0) || (numAttack.contains("X") && attack == 0)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
//Untargeted
|
||||
if ((sa.getTargetRestrictions() == null) || !sa.getTargetRestrictions().doesTarget()) {
|
||||
final List<Card> cards = AbilityUtils.getDefinedCards(sa.getHostCard(),
|
||||
sa.getParam("Defined"), sa);
|
||||
final List<Card> cards = AbilityUtils.getDefinedCards(sa.getHostCard(), sa.getParam("Defined"), sa);
|
||||
|
||||
if (cards.isEmpty()) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user