- Fixed AI not playing To the Slaughter.

This commit is contained in:
Sloth
2016-04-03 12:58:51 +00:00
parent 723730d470
commit 1cda53dbb5
2 changed files with 6 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ public class StoreSVarAi extends SpellAbilityAi {
@Override
protected boolean canPlayAI(Player ai, SpellAbility sa) {
//Tree of Redemption
//
final Card source = sa.getHostCard();
final Game game = ai.getGame();
@@ -68,10 +68,12 @@ public class StoreSVarAi extends SpellAbilityAi {
}
return false;
}
else if (ComputerUtil.waitForBlocking(sa) || ai.getLife() + 1 >= source.getNetToughness()
else if ("Tree of Redemption".equals(source.getName())) {
if (ComputerUtil.waitForBlocking(sa) || ai.getLife() + 1 >= source.getNetToughness()
|| (ai.getLife() > 5 && !ComputerUtilCombat.lifeInSeriousDanger(ai, ai.getGame().getCombat()))) {
return false;
}
}
return true;
}