- DamageAllAi: prioritize killing the player off, if possible (e.g. Earthquake for X=1 to kill creatures or X=3 to kill a player).

This commit is contained in:
Agetian
2017-08-23 04:58:29 +00:00
parent 99ce6cf29d
commit e96c503b11

View File

@@ -101,7 +101,7 @@ public class DamageAllAi extends SpellAbilityAi {
// if we can kill human, do it
if ((validP.equals("Player") || validP.contains("Opponent"))
&& (opp.getLife() <= ComputerUtilCombat.predictDamageTo(opp, dmg, source, false))) {
return 1;
return Integer.MAX_VALUE;
}
int minGain = 200; // The minimum gain in destroyed creatures