- Somewhat improve the AI for combat pumps coming from permanents

This commit is contained in:
Agetian
2019-06-21 20:49:30 +03:00
parent 12e3dd2198
commit 3ef5e82c46

View File

@@ -1457,6 +1457,10 @@ public class ComputerUtilCard {
}
if (totalPowerUnblocked >= opp.getLife()) {
return true;
} else if (totalPowerUnblocked > dmg && sa.getHostCard() != null && sa.getHostCard().isInPlay()) {
if (sa.getPayCosts() != null && sa.getPayCosts().hasNoManaCost()) {
return true; // always activate abilities which cost no mana and which can increase unblocked damage
}
}
}
float value = 1.0f * (pumpedDmg - dmg);