mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- A little more work on combat tricks.
This commit is contained in:
@@ -1492,7 +1492,7 @@ public class ComputerUtilCard {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean wantToHoldTrick = holdCombatTricks;
|
boolean wantToHoldTrick = holdCombatTricks && !ai.getCardsIn(ZoneType.Hand).isEmpty();
|
||||||
if (chanceToHoldCombatTricks >= 0) {
|
if (chanceToHoldCombatTricks >= 0) {
|
||||||
// Obey the chance specified in the AI profile for holding combat tricks
|
// Obey the chance specified in the AI profile for holding combat tricks
|
||||||
wantToHoldTrick &= MyRandom.percentTrue(chanceToHoldCombatTricks);
|
wantToHoldTrick &= MyRandom.percentTrue(chanceToHoldCombatTricks);
|
||||||
|
|||||||
Reference in New Issue
Block a user