mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Somewhat improve the AI for combat pumps coming from permanents
This commit is contained in:
@@ -1457,6 +1457,10 @@ public class ComputerUtilCard {
|
|||||||
}
|
}
|
||||||
if (totalPowerUnblocked >= opp.getLife()) {
|
if (totalPowerUnblocked >= opp.getLife()) {
|
||||||
return true;
|
return true;
|
||||||
|
} else if (totalPowerUnblocked > dmg && sa.getHostCard() != null && sa.getHostCard().isInPlay()) {
|
||||||
|
if (sa.getPayCosts() != null && sa.getPayCosts().hasNoManaCost()) {
|
||||||
|
return true; // always activate abilities which cost no mana and which can increase unblocked damage
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
float value = 1.0f * (pumpedDmg - dmg);
|
float value = 1.0f * (pumpedDmg - dmg);
|
||||||
|
|||||||
Reference in New Issue
Block a user