mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Comment formatting fix.
This commit is contained in:
@@ -122,11 +122,8 @@ public class DamageAllAi extends SpellAbilityAi {
|
|||||||
if ((!source.getName().equals("Pestilence"))
|
if ((!source.getName().equals("Pestilence"))
|
||||||
|| ((ai.getGame().getPhaseHandler().is(PhaseType.END_OF_TURN)
|
|| ((ai.getGame().getPhaseHandler().is(PhaseType.END_OF_TURN)
|
||||||
&& (ai.getGame().getNonactivePlayers().contains(ai)))))
|
&& (ai.getGame().getNonactivePlayers().contains(ai)))))
|
||||||
// Need further improvement : if able to kill
|
// Need further improvement : if able to kill immediately with repeated activations, do not wait
|
||||||
// immediately with repeated activations, do not wait
|
// for phases! Will also need to implement considering repeated activations for killed creatures!
|
||||||
// for phases!
|
|
||||||
// Will also need to implement considering repeated
|
|
||||||
// activations for killed creatures!
|
|
||||||
// || (ai.sa.getPayCosts(). ??? )
|
// || (ai.sa.getPayCosts(). ??? )
|
||||||
{
|
{
|
||||||
// would take zero damage, and hurt opponent, do it!
|
// would take zero damage, and hurt opponent, do it!
|
||||||
@@ -144,12 +141,8 @@ public class DamageAllAi extends SpellAbilityAi {
|
|||||||
&& (ComputerUtilCombat.predictDamageTo(opp, dmg, source, false) >= 1)) {
|
&& (ComputerUtilCombat.predictDamageTo(opp, dmg, source, false) >= 1)) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
// At least half enemy remaining life can be
|
// At least half enemy remaining life can be removed in one go
|
||||||
// removed
|
// worth doing even if enemy still has high health - one more copy of spell to win!
|
||||||
// in one go
|
|
||||||
// worth doing even if enemy still has high
|
|
||||||
// health -
|
|
||||||
// one more copy of spell to win!
|
|
||||||
if (opp.getLife() <= 2 * ComputerUtilCombat.predictDamageTo(opp, dmg, source, false)) {
|
if (opp.getLife() <= 2 * ComputerUtilCombat.predictDamageTo(opp, dmg, source, false)) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user