- Added a filter to ComputerAI_General.getMain2() and this should prevent the computer from summoning Ball Lightning type creatures during main phase 2.

- Minor fix to code block for Breath of Life; False Defeat; Resurrection; Zombify.
This commit is contained in:
jendave
2011-08-06 06:00:13 +00:00
parent e3df390f45
commit 12fe90c782
2 changed files with 5 additions and 1 deletions

View File

@@ -918,7 +918,7 @@ public class CardFactory_Sorceries {
//*************** START *********** START **************************
else if(cardName.equals("Breath of Life") || cardName.equals("Resurrection")
else if(cardName.equals("Breath of Life") || cardName.equals("Resurrection")
|| cardName.equals("False Defeat") || cardName.equals("Zombify")) {
final SpellAbility spell = new Spell(card) {
private static final long serialVersionUID = -5799646914112924814L;

View File

@@ -219,6 +219,10 @@ public class ComputerAI_General implements Computer {
all.addAll(AllZone.Computer_Hand.getCards());
all.addAll(AllZone.Computer_Play.getCards());
all.addAll(CardFactoryUtil.getFlashbackCards(Constant.Player.Computer).toArray());
// Prevent the computer from summoning Ball Lightning type creatures during main phase 2
all = all.getNotKeyword("At the beginning of the end step, sacrifice CARDNAME.");
all = all.filter(new CardListFilter() {
public boolean addCard(Card c) {
if(c.isLand()) return false;