mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- A couple more tweaks in ChooseTypeAi.
This commit is contained in:
@@ -96,12 +96,12 @@ public class ChooseTypeAi extends SpellAbilityAi {
|
||||
}
|
||||
avgPower /= cre.size();
|
||||
|
||||
boolean overpower = cre.size() >= oppUsefulCreatures && maxX > maxOppPower && maxX >= maxOppToughness;
|
||||
boolean overpower = cre.size() > oppUsefulCreatures;
|
||||
if (!overpower) {
|
||||
maxX = Math.max(0, maxX - 3); // conserve some mana unless the board position looks overpowering
|
||||
}
|
||||
|
||||
if (maxX > avgPower) {
|
||||
if (maxX > avgPower && maxX > maxOppPower && maxX >= maxOppToughness) {
|
||||
sa.setSVar("PayX", String.valueOf(maxX));
|
||||
AiCardMemory.rememberCard(aiPlayer, sa.getHostCard(), AiCardMemory.MemorySet.ANIMATED_THIS_TURN);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user