mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Fixed AI not playing To the Slaughter.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user