mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Fixed problems with previous commit
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user