Merge branch 'master' into 'master'

Factor in the original chance boost for granting haste to creatures in PumpAI.

See merge request core-developers/forge!1194
This commit is contained in:
Michael Kamensky
2018-12-08 17:29:46 +00:00

View File

@@ -1313,7 +1313,7 @@ public class ComputerUtilCard {
if (keywords.contains("Haste") && c.hasSickness() && !c.isTapped()) {
//chance += 0.5f;
if (ComputerUtilCard.doesSpecifiedCreatureAttackAI(ai, pumped)) {
chance += 0.5f * ComputerUtilCombat.damageIfUnblocked(pumped, opp, combat, true) / opp.getLife();
chance += 0.5f + (0.5f * ComputerUtilCombat.damageIfUnblocked(pumped, opp, combat, true) / opp.getLife());
}
}