mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Fixed an inverted clause in the experimental "random combat trades" code.
This commit is contained in:
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user