Fixed problems with previous commit

This commit is contained in:
Seravy
2018-02-14 22:26:54 +01:00
parent 7e9312a93c
commit af14c33e39

View File

@@ -863,6 +863,7 @@ public class SpecialCardAi {
} else { } else {
opplands++; opplands++;
} }
}
// We want to empty hand as much as possible for this // We want to empty hand as much as possible for this
if (("Ensnaring Bridge".equals(cardInPlay.getName())) && if (("Ensnaring Bridge".equals(cardInPlay.getName())) &&
(cardInPlay.getController().equals(ai))) { (cardInPlay.getController().equals(ai))) {
@@ -874,8 +875,6 @@ public class SpecialCardAi {
&& (ai.getGame().getCardsIn(ZoneType.Hand).size() >= 2)) { && (ai.getGame().getCardsIn(ZoneType.Hand).size() >= 2)) {
hasbridge = true; hasbridge = true;
} }
}
} }
// Always if enemy would die and we don't! // Always if enemy would die and we don't!
// TODO : predict actual damage instead of assuming it'll be 2*lands // TODO : predict actual damage instead of assuming it'll be 2*lands
@@ -890,7 +889,7 @@ public class SpecialCardAi {
} }
// Do if we need to lose cards to activate Ensnaring Bridge or Cursed Scroll // Do if we need to lose cards to activate Ensnaring Bridge or Cursed Scroll
// even if suboptimal play, but don't waste the card too early even then! // even if suboptimal play, but don't waste the card too early even then!
if ((hasbridge) && (ai.getGame().getPhaseHandler().getTurn() < 10)) { if ((hasbridge) && (ai.getGame().getPhaseHandler().getTurn() >= 10)) {
return true; return true;
} }