- Fixed an inverted clause in the experimental "random combat trades" code.

This commit is contained in:
Agetian
2017-09-01 13:42:12 +00:00
parent 77046cf38a
commit bef51732e0

View File

@@ -588,7 +588,7 @@ public class AiBlockController {
boolean powerParityOrHigher = blocker.getNetPower() >= attacker.getNetPower(); boolean powerParityOrHigher = blocker.getNetPower() >= attacker.getNetPower();
boolean creatureParityOrHigher = ComputerUtil.countUsefulCreatures(ai) >= ComputerUtil.countUsefulCreatures(attacker.getController()); boolean creatureParityOrHigher = ComputerUtil.countUsefulCreatures(ai) >= ComputerUtil.countUsefulCreatures(attacker.getController());
if (evalBlk >= evalAtk if (evalBlk <= evalAtk
&& powerParityOrHigher && powerParityOrHigher
&& (creatureParityOrHigher || randomTradeIfBehindOnBoard) && (creatureParityOrHigher || randomTradeIfBehindOnBoard)
&& MyRandom.percentTrue(chance)) { && MyRandom.percentTrue(chance)) {